emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Wanrong Lin <wanrong.lin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Redefine "M-p" key binding in org-agenda-mode
Date: Mon, 29 Oct 2007 17:00:29 +0100	[thread overview]
Message-ID: <EB1CEEBE-23CD-46DA-89A7-47A532C34041@science.uva.nl> (raw)
In-Reply-To: <4725EE92.4060902@gmail.com>


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	other threads:[~2007-10-29 17:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 14:30 Redefine "M-p" key binding in org-agenda-mode Wanrong Lin
2007-10-29 16:00 ` Carsten Dominik [this message]
2007-10-29 16:07 ` Bastien
2007-10-29 16:20   ` Carsten Dominik
2007-10-29 17:53     ` Wanrong Lin

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=EB1CEEBE-23CD-46DA-89A7-47A532C34041@science.uva.nl \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wanrong.lin@gmail.com \
    /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).