[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re-map global key while in the agenda?
From: |
Nathan Neff |
Subject: |
[Orgmode] Re-map global key while in the agenda? |
Date: |
Fri, 11 Feb 2011 10:47:06 -0600 |
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
- [Orgmode] Re-map global key while in the agenda?,
Nathan Neff <=