[Top][All Lists]

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

RE: [h-e-w] Add items to menu-bar at specific location?

From: Eli Daniel
Subject: RE: [h-e-w] Add items to menu-bar at specific location?
Date: Mon, 19 Jan 2004 17:39:09 -0500

See define-key-after.  I add a "redo" entry, along with a menu separator
line, to the edit menu beneath "undo" like so:

  (lookup-key global-map [menu-bar edit])
  '("Redo" . redo) 'undo)
  (lookup-key global-map [menu-bar edit])
  [undo-seperator] '("--" . undo-seperator) 'redo)

This, or course, depends on having a command called `redo' defined already.

-Eli Daniel

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of address@hidden
Sent: Monday, January 19, 2004 4:11 PM
To: address@hidden
Subject: [h-e-w] Add items to menu-bar at specific location?

Hello everyone,

I'd like to add items to the menu-bar at specific locations
in the menus (e.g. adding a entry to start ECB in the Tools
menu but not at the top of that menu), but my lisp-fu and
google-fu must not be beyond white-belt level, as I couldn't
find out how to do this - other than hacking menu-bar.el
which I'd rather not do).  The definition of define-key
implies that they can only be added to the top of the sparse
keymaps.  Is there a way to position or move a key
definition in the map so the menu item is placed where

Any advice, pointers to google on, etc., appreciated.



reply via email to

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