From 6def92e4e10ba7e87f60af5abf95321b639ee351 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 17 Nov 2013 11:10:02 +0100 Subject: Simplify window management in Emacs --- .emacs.d/init.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.emacs.d') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index e471651..df9b930 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -383,3 +383,18 @@ Which is pretty much the same as my =elisp= macro in my stumpwm config. + +* Simplify window management in Emacs + + stumpwm uses ~ S~, ~ s~, ~ Q~ and ~ R~ to + split horizontally, split vertically, remove all but the focused + frame and remove the current frame. Somehow that seems easier than + Emacs' ~C-x 3~, ~C-x 2~, ~C-x 1~ and ~C-x 0~. Just because ~S~, ~s~, ~Q~ and ~R~ are + easier to reach, even though three of the four need a modifier key. + + #+BEGIN_SRC emacs-lisp + (global-set-key (kbd "C-c S") #'split-window-right) + (global-set-key (kbd "C-c s") #'split-window-below) + (global-set-key (kbd "C-c Q") #'delete-other-windows) + (global-set-key (kbd "C-c R") #'delete-window) + #+END_SRC -- cgit v1.2.3-54-g00ecf