emacs-orgmode
[Top][All Lists]
Advanced

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

[O] resizing windows from an org buffer, reqest for org-shiftcontrol<cur


From: Brady Trainor
Subject: [O] resizing windows from an org buffer, reqest for org-shiftcontrol<cursor>-final-hook
Date: Tue, 16 Sep 2014 12:15:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0



I have

(global-set-key (kbd "S-C-<left>") 'shrink-window-horizontally)
(global-set-key (kbd "S-C-<right>") 'enlarge-window-horizontally)
(global-set-key (kbd "S-C-<down>") 'shrink-window)
(global-set-key (kbd "S-C-<up>") '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




reply via email to

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