From: "Bernhard Koenig" <b.a.koenig@googlemail.com>
To: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: enhancement/wish
Date: Wed, 29 Oct 2008 03:40:22 -0400 [thread overview]
Message-ID: <de34c09f0810290040n36c55fd0h94e19738b842f2f2@mail.gmail.com> (raw)
In-Reply-To: <49081026.1040106@swipnet.se>
> From what I see, LaTeX-mode-hook does not set its own tool bar map. So you
> should not have to do anything. It should work. Are you sure recentf-mode
> is on when you switch to latex-mode?
I found my problem with LaTeX-mode-hook: I had the line
(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar)
in my .emacs which overwrites tool-bar-map. But then I commented out
this line (I think it might be obsolete) and everything worked.
> As for info mode, just put your code in a defun:
>
> (defun my-tool-bar-addition ()
> ;; the code you have goes here
> )
>
> (add-hook 'Info-mode-hook 'my-tool-bar-addition)
Yes, I did that, see my mail 30 min earlier. Hmm, is it info-mode-hook
or Info-mode-hook?
> For other modes, you have to find their hook variable.
> AFAIK, there is no way to add an item to "all tool bars", so it
> automatically gets added to new tool bars that modes may install. Maybe we
> need such a command.
It would be nice to have global hook, something that incorporates all
hooks, or at least almost all of them.
Best,
Bernhard
next prev parent reply other threads:[~2008-10-29 7:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-25 0:36 enhancement/wish Bernhard Koenig
2008-10-25 8:12 ` enhancement/wish Eli Zaretskii
[not found] ` <de34c09f0810250129m5fea708bh78e06f9219fd864@mail.gmail.com>
2008-10-25 10:25 ` enhancement/wish Eli Zaretskii
2008-10-25 15:20 ` enhancement/wish David Reitter
2008-10-25 20:21 ` enhancement/wish Bernhard Koenig
2008-10-27 23:38 ` enhancement/wish Bernhard Koenig
2008-10-28 4:12 ` enhancement/wish Eli Zaretskii
2008-10-28 5:11 ` enhancement/wish Bernhard Koenig
[not found] ` <4906BF50.40709@swipnet.se>
2008-10-28 8:17 ` enhancement/wish Bernhard Koenig
2008-10-28 8:38 ` enhancement/wish Bernhard Koenig
2008-10-28 16:39 ` enhancement/wish Jan Djärv
2008-10-28 20:40 ` enhancement/wish Bernhard Koenig
2008-10-29 7:01 ` enhancement/wish Bernhard Koenig
2008-10-29 7:26 ` enhancement/wish Jan D.
2008-10-29 7:40 ` Bernhard Koenig [this message]
2008-10-29 11:21 ` enhancement/wish Jan D.
2008-10-29 17:01 ` enhancement/wish Chming
2008-10-29 20:10 ` enhancement/wish Bernhard Koenig
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=de34c09f0810290040n36c55fd0h94e19738b842f2f2@mail.gmail.com \
--to=b.a.koenig@googlemail.com \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).