all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Vollmar <vollmar@nf.mpg.de>
To: "Joel J. Adamson" <adamsonj@email.unc.edu>
Cc: help-gnu-emacs@gnu.org, Kevin Rodgers <kevin.d.rodgers@gmail.com>
Subject: Re: making change of tool-bar entry persistent
Date: Wed, 26 May 2010 21:35:52 +0200	[thread overview]
Message-ID: <901DD78E-443B-4766-998D-FD3C690C8197@nf.mpg.de> (raw)
In-Reply-To: <30653.1274877467@chondestes.bio.unc.edu>

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

Dear Joel,

On 26.05.2010, at 14:37, Joel J. Adamson wrote:
[...]

> I was able to get my "Make Button" working with this --- the only
> question is how to get it into the spot I want it: right before the Help
> button.
> 
> Can anybody direct me to the documentation for this?



C-h k yields <tool-bar> <customize> for the button ("customize") just left to Help. 

With define-key-after, you can now insert your new toolbar entry between [customize] and [help] like this

(defvar my-tool-bar-map tool-bar-map)
(define-key-after my-tool-bar-map [my-new-tool-id]
  '(menu-item "My New Tool" my-new-tool-function
   :image (image :type xpm :file "my-new-tool-icon.xpm"))
  'customize)
(set (make-local-variable 'tool-bar-map) my-tool-bar-map)

This seems to work fine in Aquamacs 2.a (Mac) and with Emacs 23.2 on Windows.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

      reply	other threads:[~2010-05-26 19:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23 14:11 making change of tool-bar entry persistent Stefan Vollmar
2010-05-25  6:23 ` Kevin Rodgers
2010-05-25 22:53   ` Stefan Vollmar
2010-05-26 12:37     ` Joel J. Adamson
2010-05-26 19:35       ` Stefan Vollmar [this message]

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

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

  git send-email \
    --in-reply-to=901DD78E-443B-4766-998D-FD3C690C8197@nf.mpg.de \
    --to=vollmar@nf.mpg.de \
    --cc=adamsonj@email.unc.edu \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kevin.d.rodgers@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.