[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Windmove keybindings pass-through
From: |
suvayu ali |
Subject: |
Re: [Orgmode] Windmove keybindings pass-through |
Date: |
Mon, 20 Dec 2010 13:43:36 -0800 |
On Mon, Dec 20, 2010 at 1:21 PM, Leo Alekseyev <address@hidden> wrote:
> To answer my own question: here's how you avoid clobbering the
> windmove commands. This method should probably be added to the org
> manual section which discusses the (add-hook 'org-shiftup-final-hook
> 'windmove-up), etc commands.
>
> ;; don't clobber windmove bindings: code must be placed _before_ org
> loads
> ;; also, the (add-hook 'org-shiftup-final-hook 'windmove-up), etc
> lines don't seem to do squat
> ;; default disputed keys remap so that windowmove commands aren't
> overridden
> (setq org-disputed-keys '(([(shift up)] . [(meta p)])
> ([(shift down)] . [(meta n)])
> ([(shift left)] . [(meta -)])
> ([(shift right)] . [(meta +)])
> ([(meta return)] . [(control meta return)])
> ([(control shift right)] . [(meta shift +)])
> ([(control shift left)] . [(meta shift -)])))
> (setq org-replace-disputed-keys t)
>
Thanks a lot. I wasn't aware of this method. This will be very helpful.
--
Suvayu
Open source is the future. It sets us free.