From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: resizing windows from an org buffer, reqest for org-shiftcontrol-final-hook Date: Tue, 16 Sep 2014 12:15:06 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTyE5-0005tW-IH for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 15:15:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTyDz-0004Os-Ls for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 15:15:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:42849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTyDz-0004MG-4s for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 15:15:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTyDr-0008De-BS for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 21:15:31 +0200 Received: from 75-172-117-124.tukw.qwest.net ([75.172.117.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 21:15:31 +0200 Received: from algebrat by 75-172-117-124.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 21:15:31 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I have (global-set-key (kbd "S-C-") 'shrink-window-horizontally) (global-set-key (kbd "S-C-") 'enlarge-window-horizontally) (global-set-key (kbd "S-C-") 'shrink-window) (global-set-key (kbd "S-C-") 'enlarge-window) in my init file, as suggested at http://www.emacswiki.org/emacs-en/WindowResize. However, when I am in an org file, the binding fails. I had hoped that (setq org-support-shift-select t) would fix this, but it only seems to want to allow selection. A solution might be similar to the one ;; quick keys for switching windows (windmove-default-keybindings) ;; fix windmove in org-mode (add-hook 'org-shiftup-final-hook 'windmove-up) (add-hook 'org-shiftleft-final-hook 'windmove-left) (add-hook 'org-shiftdown-final-hook 'windmove-down) (add-hook 'org-shiftright-final-hook 'windmove-right) as suggested at http://orgmode.org/manual/Conflicts.html. Looking at the code in org.el, it seems org-shiftcontrolup and the like were not so lucky to get such a final-hook. Can this be added? I am currently using package.el org-mode, so I may not immediately get to try it out, but would look forward to adding it to my workflow soon. Or do others have another solution to resizing windows in org-mode? Brady