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

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

making change of tool-bar entry persistent


From: Stefan Vollmar
Subject: making change of tool-bar entry persistent
Date: Sun, 23 May 2010 16:11:07 +0200

Hallo,

I want to re-define what happends when an exising toolbar icon is pressed. In 
the Emacs documentation I found an example similar to this:

(define-key 
  global-map 
  [tool-bar new-file]
  '(menu-item "New Buffer" my-new-buffer
                          :image (image :type xpm :file "new.xpm")))

Executing this code in Emacs 23.2 this will indeed show the desired effect - 
but only for about 2 seconds: the tool-bar is then automatically redrawn and 
behaves as before. How can I modify an existing toolbar so that the change is 
persistent?

Many thanks in advance.
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]