From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re-map global key while in the agenda?
Date: Fri, 11 Feb 2011 10:47:06 -0600 [thread overview]
Message-ID: <AANLkTimALp6QL=fGxjRuCz_zL-CDd8n2aDR2Xfxk=+TU@mail.gmail.com> (raw)
Hello,
I have <F3> i mapped to 'org-clock-in and I would also like <F3> i to
clock in while I'm in the agenda.
I have <F3> i bound using global-set-key like this:
(global-set-key (kbd "<f3> i") 'org-clock-in)
And I tried using "define-key" to redefine F3-i in agenda mode
like this:
(add-hook 'org-agenda-mode-hook
'(lambda ()
(define-key org-agenda-mode-map (kbd "<F3> i")
'org-agenda-clock-in)
))
But, when I'm in the agenda, <F3> i is always mapped to 'org-clock-in,
not 'org-agenda-clock-in
Is it possible to redefine a global key mapping in the agenda?
Thanks,
--Nate
next reply other threads:[~2011-02-11 16:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 16:47 Nathan Neff [this message]
2011-02-11 19:48 ` Re-map global key while in the agenda? Bastien
2011-02-11 23:58 ` Bernt Hansen
2011-02-12 11:02 ` Bastien
2011-02-12 17:07 ` Nathan Neff
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTimALp6QL=fGxjRuCz_zL-CDd8n2aDR2Xfxk=+TU@mail.gmail.com' \
--to=nathan.neff@gmail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).