diff options
-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 |