help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: making change of tool-bar entry persistent


From: Stefan Vollmar
Subject: Re: making change of tool-bar entry persistent
Date: Wed, 26 May 2010 21:35:52 +0200

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: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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