From d9de886cafda9542df23edff35bc43ea07fea25d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 23 Jul 2021 21:43:46 +0100 Subject: (Emacs)+undo-tree package and fit into Evil --- Emacs/.config/emacs/config.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index c0850b6..3723462 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -331,7 +331,7 @@ Setup the evil package, with some opinionated keybindings: evil-split-window-below t evil-vsplit-window-right t evil-want-abbrev-expand-on-insert-exit t - evil-undo-system 'nil) + evil-undo-system 'undo-tree) :config (fset #'evil-window-vsplit #'make-frame)) #+end_src @@ -1800,6 +1800,16 @@ flyspell-mode should be hooked to text-mode. (kbd "M-a") #'flyspell-correct-word-before-point (kbd "M-A") #'flyspell-auto-correct-word)) #+end_src +*** Undo tree +Undo tree is a system for handling the history of any buffer. It +provides a very nice 'tree' visualiser (hence the name) for revisions +of a file or buffer, and allows you to move around different verisons +at once, without using a VCS like git (all in Emacs, baby). +#+begin_src emacs-lisp +(use-package undo-tree + :straight t + :hook (emacs-startup-hook . global-undo-tree-mode)) +#+end_src *** White space Deleting whitespace, highlighting when going beyond the 80th character limit, all good stuff. I don't want to highlight whitespace for -- cgit v1.2.3-13-gbd6f