emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: resizing windows from an org buffer, reqest for org-shiftcontrol<cursor>-final-hook
Date: Tue, 16 Sep 2014 12:15:06 -0700	[thread overview]
Message-ID: <lva27s$867$1@ger.gmane.org> (raw)



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	other threads:[~2014-09-16 19:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 19:15 Brady Trainor [this message]
2014-09-23 17:38 ` resizing windows from an org buffer, reqest for org-shiftcontrol<cursor>-final-hook Aaron Ecay
2014-09-23 22:58   ` Brady Trainor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='lva27s$867$1@ger.gmane.org' \
    --to=algebrat@uw.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).