[Top][All Lists]

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

Re: Assignment of misc packages for emacs

From: Stefan Monnier
Subject: Re: Assignment of misc packages for emacs
Date: Sun, 19 May 2002 10:41:22 -0400

> So can someone tell me how to define `HierarKey' menus?  The elisp
> manual seems to suggest that the following should work:
>   (progn
>     (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.

Works for me.  As mentioned in one of my earlier messages, it didn't work
for the CVS head a few days ago (a mess up of mine), but it is now fixed.


reply via email to

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