From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Unsetting "C-j" Keybinding Bound to org-return-indent Date: Thu, 16 Jul 2009 23:29:38 +0200 Message-ID: <8763dsmi4d.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRYWV-0008UN-D3 for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 17:29:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRYWQ-0008Sg-Pv for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 17:29:51 -0400 Received: from [199.232.76.173] (port=60857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRYWQ-0008SZ-LE for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 17:29:46 -0400 Received: from rv-out-0708.google.com ([209.85.198.249]:16215) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRYWQ-0007mv-Af for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 17:29:46 -0400 Received: by rv-out-0708.google.com with SMTP id f25so136950rvb.6 for ; Thu, 16 Jul 2009 14:29:44 -0700 (PDT) In-Reply-To: (onguarde@gmail.com's message of "Thu, 16 Jul 2009 12:08:15 +0800") 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: onguarde - Cc: emacs-orgmode@gnu.org onguarde - writes: > The 2nd set works with or without the global-unset-key line but the first set > simply refuses to work. M-x describe-key shows that C-j is bound to > org-return-indent.  I thought this might be the problem. Org binds `C-j' to org-return-indent and local bindinds shadow global bindins. See the docstring of global-set-key. On one hand, Org maybe shouldn't rebind such key. One the other hand why do you want to rebind such a common key?? > Is there any way to unset this and rebind it globally? And since we have three hands, here is a way to discipline Org back again: (org-defkey org-mode-map "\C-j" 'move-beginning-of-line) -- Bastien