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: Tue, 28 Oct 2008 04:38:07 -0400 [thread overview]
Message-ID: <de34c09f0810280138h1513d9f9h6fd8e357bb6a0da5@mail.gmail.com> (raw)
In-Reply-To: <de34c09f0810280117h6d135041ib31afd548831fae8@mail.gmail.com>
Btw, could we add this as an example to
http://www.gnu.org/software/emacs/elisp/html_node/Tool-Bar.html ?
I googled 24/7 (no kidding) and found no examples at all, not even in
www.dotemacs.org. I would be happy to write a small paragraph about it
even though I'm clearly a non-expert.
Best,
Bernhard
On Tue, Oct 28, 2008 at 4:17 AM, Bernhard Koenig
<b.a.koenig@googlemail.com> wrote:
> Thanks Jan, that worked. Can I make it global? (It's currently showing
> up in things like .zshrc, .emacs even in M-x shell but not in the
> Latex environment.)
>
> Bernhard
>
>
> On Tue, Oct 28, 2008 at 3:29 AM, Jan D. <jan.h.d@swipnet.se> wrote:
>> Bernhard Koenig skrev:
>>>
>>> Yes, I did restart. I found a thread with a similar problem but I
>>> don't know how to resolve it:
>>> http://www.nabble.com/Ciao-on-Intel-Mac-td15000558.html
>>>
>>> In this thread they define a new function ciao-setup-tool-bar-helper,
>>> but I don't understand the syntax. The patch below gives me
>>> (wrong-type-argument listp "Recent"), the same problem from the url.
>>>
>>
>> The syntax below is wrong. '("history" . "Recent") shall be replaced with a
>> name of an icon file to use, such as "open". See etc/images for available
>> images. You can of course add your own.
>>
>> Also note that you must have recentf-mode on to see the tool bar item.
>>
>> Jan D.
>>
>>> Bernhard
>>>
>>>
>>> On Tue, Oct 28, 2008 at 12:12 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>>>>>
>>>>> Date: Mon, 27 Oct 2008 19:38:29 -0400
>>>>> From: "Bernhard Koenig" <b.a.koenig@googlemail.com>
>>>>> Cc: emacs-devel@gnu.org
>>>>>
>>>>>> (tool-bar-add-item '("history" . "Recent") (lambda ()
>>>>>> (interactive)
>>>>>> (popup-menu (easy-menu-filter-return
>>>>>> (recentf-make-menu-items)
>>>>>> "Open Recent")))
>>>>>> 'recent-files
>>>>>> :visible '(and (boundp 'recentf-mode) recentf-mode)
>>>>>> :help "Pop up the Recent Files menu")
>>>>>
>>>>> Sorry for being a noob here but how do I integrate this into .emacs?
>>>>> "tool-bar-add-item" is not an interactive command so just adding it to
>>>>> .emacs does nothing.
>>>>
>>>> ??? .emacs is not only for interactive commands. If adding this to it
>>>> does nothing, then something is wrong.
>>>>
>>>> You did restart Emacs after adding this, did you?
>>>>
>>>
>>>
>>
>>
>
next prev parent reply other threads:[~2008-10-28 8:38 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 ` Bernhard Koenig [this message]
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 ` enhancement/wish Bernhard Koenig
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=de34c09f0810280138h1513d9f9h6fd8e357bb6a0da5@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 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.