On 29Oct2007, at 3:30 PM, Wanrong Lin wrote:
Hi,
In my org-mode configuration, I bind globally "M-p" to "org-
agenda" (the default "C-a" is already used of something else). A
problem of that is, I often press "M-p" inside the agenda buffer,
trying to bring up the agenda command dispatch buffer, which
actually changes the priority of a task. I tried to rebind this key
to "org-agenda" by the following in org-agenda-mode-hook:
(define-key org-agenda-mode-map (kbd "M-p") 'org-agenda)
But the above key binding only works when the cursor is on a date
line, not a task line. On a task line, the old "priority-up"
binding is still effective.
You need to bind the key in both org-agenda-map and in org-agenda-
keymap.
The first one is the overall keymap, the second is the map in regions
with a mouse face, i.e. in all tasks.
- Carsten
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode