diff options
author | Tom Willemse | 2013-11-17 11:10:02 +0100 |
---|---|---|
committer | Tom Willemse | 2013-11-17 11:10:02 +0100 |
commit | 6def92e4e10ba7e87f60af5abf95321b639ee351 (patch) | |
tree | 03dcd750cd3d28fcad6b977a6fe3059e28a8044c | |
parent | 23ebf3f619d05d388990e4f3ec586ac3f226f965 (diff) | |
download | emacs-6def92e4e10ba7e87f60af5abf95321b639ee351.tar.gz emacs-6def92e4e10ba7e87f60af5abf95321b639ee351.zip |
Simplify window management in Emacs
-rw-r--r-- | .emacs.d/init.org | 15 |
1 files changed, 15 insertions, 0 deletions
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 ~<PREFIX> S~, ~<PREFIX> s~, ~<PREFIX> Q~ and ~<PREFIX> 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 |