emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Redefine "M-p" key binding in org-agenda-mode


From: Carsten Dominik
Subject: Re: [Orgmode] Redefine "M-p" key binding in org-agenda-mode
Date: Mon, 29 Oct 2007 17:00:29 +0100


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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]