From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: HOWTO add new menu item to the beggining of the menu Date: Tue, 23 Jun 2009 11:45:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245818909 15584 80.91.229.12 (24 Jun 2009 04:48:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 04:48:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 06:48:22 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJKPG-0005lB-1L for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 06:48:22 +0200 Original-Received: from localhost ([127.0.0.1]:50214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJKPF-0006Lj-56 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 00:48:21 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!d7g2000prl.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 24 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1245782716 14266 127.0.0.1 (23 Jun 2009 18:45:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 23 Jun 2009 18:45:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d7g2000prl.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170242 comp.emacs:98295 X-Mailman-Approved-At: Wed, 24 Jun 2009 00:46:50 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65467 Archived-At: On Jun 23, 7:46 am, Michal 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. =E2=80=A2 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 =E2=88=91 http://xahlee.org/ =E2=98=84