From c0f404657563222b7eee72512585130792ee4fdf Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 9 Oct 2020 22:15:02 -0500 Subject: Add undo-fu --- init.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index dbb2943..0f872ba 100644 --- a/init.el +++ b/init.el @@ -347,6 +347,23 @@ :bind ([remap other-window] . ctrlxo)) +;;;;; Undo-Fu +(use-package undo-fu + :bind + ("C-z" . undo-fu-only-undo) + ("C-S-z" . undo-fu-only-redo)) + +(use-package undo-fu-session + :after no-littering + :custom + (undo-fu-session-incompatible-files + '("/COMMIT_EDITMSG\\'" + "/git-rebase-todo\\'")) + (undo-fu-session-directory + (no-littering-expand-var-file-name "undos/")) + :hook + (after-init-hook . global-undo-fu-session-mode)) + ;;;; Theming, looks, fonts ;;;;; Fonts ;; https://github.com/kaushalmodi/.emacs.d/blob/master/init.el#L376 -- cgit 1.4.1-21-gabe81