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
1 changed files with 3 additions and 6 deletions

View File

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