Skip to content

Commit

Permalink
feat(emacs): evil: allow repeating window resizing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed May 12, 2024
1 parent d681e06 commit 3b87f57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,13 @@
(global-undo-tree-mode))

(use-package evil
:init
(defvar evil-window-resizing-repeat-map
(let ((map (make-sparse-keymap)))
(define-key map ">" 'evil-window-increase-width)
(define-key map "<" 'evil-window-decrease-width) map))
(put 'evil-window-increase-width 'repeat-map 'evil-window-resizing-repeat-map)
(put 'evil-window-decrease-width 'repeat-map 'evil-window-resizing-repeat-map)
:custom
(evil-want-keybinding nil)
(evil-want-C-u-scroll t)
Expand Down

0 comments on commit 3b87f57

Please sign in to comment.