[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assignment of misc packages for emacs

From: Miles Bader
Subject: Re: Assignment of misc packages for emacs
Date: 19 May 2002 20:57:26 +0900

So can someone tell me how to define `HierarKey' menus?  The elisp
manual seems to suggest that the following should work:

    (defvar menu-map)
    (setq menu-map (make-sparse-keymap "This is a prompt"))
    (local-set-key "&" menu-map)
    (define-key menu-map "1" '(menu-item "Insert 1" (lambda () (interactive) 
(insert "1"))))
    (define-key menu-map "2" '(menu-item "Insert 2" (lambda () (interactive) 
(insert "2")))))

and that then hitting the `&' key should give me a menu in the echo
area -- but it doesn't it just displays `&-' like any other key prefix.


Yo mama's so fat when she gets on an elevator it HAS to go down.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]