unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: HOWTO add new menu item to the beggining of the menu
Date: Tue, 23 Jun 2009 11:45:16 -0700 (PDT)	[thread overview]
Message-ID: <d1888a60-d998-414a-9f4e-a30e126fba99@d7g2000prl.googlegroups.com> (raw)
In-Reply-To: m2my7z1008.fsf@tenbit.pl

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/

  reply	other threads:[~2009-06-23 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 14:46 HOWTO add new menu item to the beggining of the menu Michal
2009-06-23 18:45 ` Xah Lee [this message]
2009-06-24 11:48   ` Michal
2009-06-24 13:08 ` TomSW

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d1888a60-d998-414a-9f4e-a30e126fba99@d7g2000prl.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).