From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Re: Redefine "M-p" key binding in org-agenda-mode Date: Mon, 29 Oct 2007 12:53:03 -0500 Message-ID: <47261DFF.3060809@gmail.com> References: <4725EE92.4060902@gmail.com> <87ejfdrjjp.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImYne-0007lR-5T for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 13:53:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImYnb-0007jp-TH for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 13:53:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImYnb-0007je-Cd for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 13:53:15 -0400 Received: from rv-out-0910.google.com ([209.85.198.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImYna-0004Ii-SK for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 13:53:15 -0400 Received: by rv-out-0910.google.com with SMTP id c27so1478974rvf for ; Mon, 29 Oct 2007 10:53:13 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode list Thanks for your help. You are right that my key binding probably is not optimal, but I am already used to it (I used to use planner-mode, and M-p is easy to remember). I bind other keys to replace the default M-p function. It is a little bit messy now, but that is what I love about Emacs, you can make it suit your own needs. :-) When people ask me what is so great about Emacs, I generally agree with them that Emacs is really not that great out of box, but with customization, it can streamline your own work flow, just for you. Wanrong Carsten Dominik wrote: > > On 29Oct2007, at 5:07 PM, Bastien wrote: > >> Wanrong Lin writes: >> >>> In my org-mode configuration, I bind globally "M-p" to "org-agenda" >> >> I think that binding `M-p' *globally* is a bad idea. >> >> `M-p' is the default keybinding in GNU Emacs when you need to navigate >> thru minibuffer history. In Org, it is used for example when you want >> to see the previous link in stored links. >> >>> (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. >> >> What version of Org are you using? >> >> AFAIK (kbd "M-p") is not associated to any keymap in latest Org. > > It is when you use org-replace-disputed-keys. > > - Carsten > >> >> -- >> Bastien >> >> >> _______________________________________________ >> 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 > > > > _______________________________________________ > 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