Setup undo-tree in evil

This commit is contained in:
Vladan Popovic 2021-06-08 09:30:36 +02:00
parent 18e2387ee2
commit bf2d0a113e
No known key found for this signature in database
GPG key ID: 39762748EB5A39D9

View file

@ -1,10 +1,6 @@
;; Persist command history
(savehist-mode 1)
;; Enable C-r in evil
(use-package undo-tree
:ensure t)
;;;; TAGS configuration.
;; Goto tag with M-.
(global-set-key "\M-." 'etags-select-find-tag)
@ -70,16 +66,17 @@
evil-vsplit-window-right t
evil-split-window-below t
evil-shift-round nil
evil-undo-system 'undo-tree
evil-want-C-u-scroll t)
:config ;; tweak evil after loading it
(use-package undo-tree)
(evil-mode)
(setq evil-want-C-u-scroll t)
(eval-after-load "evil-maps"
;; Unset Evil's "M-." keymap to enable symbol definition following.
(define-key evil-normal-state-map "\M-." nil)))
(use-package undo-tree
:ensure t)
(add-hook 'evil-local-mode-hook 'turn-on-undo-tree-mode)
;;;; Heml mode configuration.
(use-package helm