[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HOWTO add new menu item to the beggining of the menu
From: |
Xah Lee |
Subject: |
Re: HOWTO add new menu item to the beggining of the menu |
Date: |
Tue, 23 Jun 2009 11:45:16 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jun 23, 7:46 am, Michal <rabbi...@tenbit.pl> wrote:
> Hallo Group Readers!
>
> I have NO problem adding new item to the end of the menu. For example:
>
> (define-key c-mode-map [tool-bar csearch-forw]
> `(menu-item "csearch forward" csearch-forward
> :image (image :type xpm :file
> "/tmp/right-arrow.xpm")))
>
> But how to add it to be the first element in a menu?
there's a define-key-after.
• Modifying-Menus.html#Modifying-Menus
http://xahlee.org/elisp/Modifying-Menus.html#Modifying-Menus
i vaguely recall there's also a define-key-before or similar, but
can't find it now.
Xah
∑ http://xahlee.org/
☄