From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: Windmove keybindings pass-through Date: Mon, 20 Dec 2010 13:21:29 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnAl-00054V-2r for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:21:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUnAg-0006HG-Ns for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:21:31 -0500 Received: from mail-fx0-f48.google.com ([209.85.161.48]:57281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUnAg-0006H8-I9 for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:21:30 -0500 Received: by fxm2 with SMTP id 2so3266170fxm.35 for ; Mon, 20 Dec 2010 13:21:29 -0800 (PST) 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: suvayu ali Cc: emacs-orgmode@gnu.org 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) On Mon, Dec 20, 2010 at 12:37 PM, Leo Alekseyev wrote: > Thanks for the suggestion, but this is a non-solution. =A0My preference > would be to (a) in org-mode, move outline manipulation to e.g. > C- from S-, and if that is too difficult, then (b) get > rid of outline manipulation altogether. =A0I use S- in windmove > orders of magnitude more often than I mess with my org outlines. > Surely there must be a way to customize org keybindings without having > to source-dive?.. > > --Leo > > On Thu, Dec 16, 2010 at 3:20 PM, suvayu ali = wrote: >> On Thu, Dec 16, 2010 at 2:24 PM, Leo Alekseyev wrote= : >>> Optionally, it would be nice >>> if I can map the shift-arrow functionality to something like M-arrows >>> or C-arrows or C-M-arrows (whichever might be not taken / less >>> useful). =A0However, getting rid of org-mode's stealing shift-arrows is >>> a priority. =A0Any help is appreciated :) >> >> I would recommend (windmove-default-keybindings 'control) for >> `C-'. That seems to be the modifier key least used by org-mode >> and least likely to be overridden. >> >> -- >> Suvayu >> >> Open source is the future. It sets us free. >> >