Skip to content

Commit

Permalink
feat(emacs): evil: add undo in non-file buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Feb 10, 2025
1 parent 975211b commit bac14c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
"B r" #'rename-buffer))

(use-package undo-tree
:init
(global-undo-tree-mode)
:custom
(undo-tree-enable-undo-in-region t)
(undo-tree-history-directory-alist `(("." . ,(concat user-emacs-directory "undo-tree-history")))))
Expand Down Expand Up @@ -429,10 +431,6 @@
"h c" #'helpful-command
"h m" #'describe-mode))

(use-package undo-tree
:config
(global-undo-tree-mode))

(winner-mode +1)

(repeat-mode +1)
Expand All @@ -441,6 +439,9 @@
"C-s" #'avy-goto-char)

(use-package evil
:after undo-tree
:init
(add-hook 'wdired-mode-hook #'turn-on-undo-tree-mode)
:bind
(:repeat-map evil-window-resizing-repeat-map
("-" . evil-window-decrease-height)
Expand Down

0 comments on commit bac14c6

Please sign in to comment.