emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastienguerry@googlemail.com>
To: onguarde - <onguarde@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Unsetting "C-j" Keybinding Bound to org-return-indent
Date: Thu, 16 Jul 2009 23:29:38 +0200	[thread overview]
Message-ID: <8763dsmi4d.fsf@bzg.ath.cx> (raw)
In-Reply-To: <fb6e5c300907152108g7315debeg5147baca9b0f4f59@mail.gmail.com> (onguarde@gmail.com's message of "Thu, 16 Jul 2009 12:08:15 +0800")

onguarde - <onguarde@gmail.com> 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

  reply	other threads:[~2009-07-16 21:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16  4:08 Unsetting "C-j" Keybinding Bound to org-return-indent onguarde -
2009-07-16 21:29 ` Bastien [this message]
     [not found]   ` <fb6e5c300907170107l57a2eba6vefa1c0ca0addfe91@mail.gmail.com>
2009-07-17  8:43     ` Bastien

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=8763dsmi4d.fsf@bzg.ath.cx \
    --to=bastienguerry@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=onguarde@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).