diff options
author | Amin Bandali <bandali@kelar.org> | 2022-05-07 16:12:27 -0400 |
---|---|---|
committer | Amin Bandali <bandali@kelar.org> | 2022-05-19 22:20:01 -0400 |
commit | 69ad7e369bcbb17c8301a5e26ff6e3300649b98f (patch) | |
tree | 7777779157ea97091e51928fa8007d8307a82b4b | |
parent | 2698f1c3182b77dbfb532d3799539395d160c9b4 (diff) | |
download | configs-69ad7e369bcbb17c8301a5e26ff6e3300649b98f.tar.gz configs-69ad7e369bcbb17c8301a5e26ff6e3300649b98f.tar.xz configs-69ad7e369bcbb17c8301a5e26ff6e3300649b98f.zip |
* .emacs.d/init.el: Add some i3-like windmove bindings.
Diffstat (limited to '')
-rw-r--r-- | .emacs.d/init.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8836a1b..9c2f1ff 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -362,6 +362,14 @@ This sets each user option VAR's value to the corresponding VALUE. (require 'winner) (winner-mode 1) +(run-with-idle-timer 0.1 nil #'require 'windmove) +(with-eval-after-load 'windmove + (csetq windmove-wrap-around t) + (global-set-key (kbd "M-H") #'windmove-left) + (global-set-key (kbd "M-L") #'windmove-right) + (global-set-key (kbd "M-K") #'windmove-up) + (global-set-key (kbd "M-J") #'windmove-down)) + (with-eval-after-load 'compile ;; don't display *compilation* buffer on success. based on ;; https://stackoverflow.com/a/17788551, with changes to use `cl-letf' |