aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-07-23 21:43:46 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-07-25 15:44:48 +0100
commitd9de886cafda9542df23edff35bc43ea07fea25d (patch)
tree42c63537576a7635374925c3a6fd82ae45b19204 /Emacs/.config
parent6ec0aad87e0cdc0f888e48e8d416b05af078d51a (diff)
downloaddotfiles-d9de886cafda9542df23edff35bc43ea07fea25d.tar.gz
dotfiles-d9de886cafda9542df23edff35bc43ea07fea25d.tar.bz2
dotfiles-d9de886cafda9542df23edff35bc43ea07fea25d.zip
(Emacs)+undo-tree package and fit into Evil
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org12
1 files changed, 11 insertions, 1 deletions
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