Re: activate menubar

Glynn Clements <[email protected]>
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
Karl Stroetmann wrote:

> here is a simple question that I was not able to figure out myself
> after reading lots of Info pages.  Maybe someone can help.
> 
> If I start XEmacs, it comes up with a menubar of the form
> 
>  File  Edit  View  Cmds  Tools  Options  Buffers        Help
> 
> Some of these letters are undelined, for example in "File" the letter
> 'F' is underlined.  This indicates to me that there must be some way
> to activate the menu via the keyboard.  I have tried various key
> combinations and looked up all the key bindings but I was not able to
> figure out how to activate the menu without the mouse.  Can it be
> done? Please help.

You may need to explicitly enable keyboard activation in your ~/.emacs
file, e.g.:

	(setq menu-accelerator-enabled 'menu-fallback)
	(setq menu-accelerator-modifiers '(alt))

You probably don't want to use Meta as the modifier, as Meta-<key> is
heavily used within XEmacs. If you don't have both Alt and Meta keys,
you will probably want to use some other mechanism, e.g. setting
menu-accelerator-prefix.

Alternatively, you can defining a key sequence to activate menu
navigation, e.g.

	(define-key global-map 'f10 'accelerate-menu)

Then you can navigate the menu using the accelerators as well as the
cursor keys; use Esc to go back one level, C-g to quit.

-- 
Glynn Clements <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.