help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: org-mode keybinding


From: Bastien
Subject: Re: org-mode keybinding
Date: Sat, 18 Aug 2012 18:08:22 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

drain <aeuster@gmail.com> writes:

> Tried to remap org-beginning-of-line to C-q, neither of these two methods
> worked:
>
> (1)
>
> (add-hook 'org-mode-hook 
>           (lambda ()
>             (local-set-key "\C-q" 'org-beginning-of-line)))
>
> (2) 
>
> (add-hook 'org-mode-hook
>           '(lambda ()
>              (define-key org-mode-map "\C-q" 'org-beginning-of-line)))

Use `org-defkey' and the org-mode map:

(org-defkey org-mode-map "\C-q" 'org-beginning-of-line)

HTH,

-- 
 Bastien



reply via email to

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