From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Windmove keybindings pass-through Date: Mon, 20 Dec 2010 13:43:36 -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=59769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnWQ-0006t0-Rm for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:44:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUnWP-0002ZR-Q7 for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:43:58 -0500 Received: from mail-fx0-f48.google.com ([209.85.161.48]:37847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUnWP-0002ZL-Ix for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 16:43:57 -0500 Received: by fxm2 with SMTP id 2so3289815fxm.35 for ; Mon, 20 Dec 2010 13:43:56 -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: Leo Alekseyev Cc: emacs-orgmode@gnu.org On Mon, Dec 20, 2010 at 1:21 PM, Leo Alekseyev wrote: > To answer my own question: here's how you avoid clobbering the > windmove commands. =A0This 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)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(shift down)] . [(me= ta n)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(shift left)] . [(me= ta -)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(shift right)] . [(m= eta +)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(meta return)] . [(c= ontrol meta return)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(control shift right= )] . [(meta shift +)]) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0([(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. --=20 Suvayu Open source is the future. It sets us free.