From: Xebar Saram <zeltakc@gmail.com>
To: Bastien <bzg@gnu.org>, org mode <emacs-orgmode@gnu.org>
Subject: Re: binding org-id-goto to a key
Date: Sat, 1 Mar 2014 13:08:26 +0200 [thread overview]
Message-ID: <CAOQHXPqypObVsPYUwX_YOX2t5=NZGt4vz03Oz2e_vjGENJfCfg@mail.gmail.com> (raw)
In-Reply-To: <878usu9zc4.fsf@bzg.ath.cx>
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
Thx Bastien
as always your answers are spot on and brilliant. i want to personally
thank you again for everything you've contributed to the community in the
past years, anytime i read a blog post of yours or a post in the mailing
lists its always such a joy. its really appreciated!
best
Z
On Sat, Mar 1, 2014 at 9:01 AM, Bastien <bzg@gnu.org> wrote:
> Hi Xebar,
>
> Xebar Saram <zeltakc@gmail.com> writes:
>
> > im trying to bind some headers to specific keys using the org-id-goto
> > command and so far have this:
> >
> > (global-set-key (kbd "<f9> l") 'org-id-goto
> > "8460d499-ea32-4693-a8d4-0d08b00ba3f3")
> >
> > but im aware that this code isnt wrong. can anyone guide me in the
> > right direction?
>
> (global-set-key (kbd "C-<f9>")
> (lambda ()
> (interactive)
> (org-id-goto "8460d499-ea32-4693-a8d4-0d08b00ba3f3")))
>
>
> For (kbd "<f9> l") to work, you need to have f9 to be a prefix key,
> so I changed it to (kbd "C-<f9>") for my own test.
>
> (lambda () ...) is an anonymous function.
>
> (interactive) makes the function an interactive command, which is
> needed for the form to be bound to the key.
>
> HTH,
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 1883 bytes --]
prev parent reply other threads:[~2014-03-01 11:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-01 5:27 binding org-id-goto to a key Xebar Saram
2014-03-01 7:01 ` Bastien
2014-03-01 11:08 ` Xebar Saram [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='CAOQHXPqypObVsPYUwX_YOX2t5=NZGt4vz03Oz2e_vjGENJfCfg@mail.gmail.com' \
--to=zeltakc@gmail.com \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
/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.