From b868fa30e8603e93cee823e245298548a85652dc Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 12 Apr 2022 22:40:28 -0500 Subject: Configure undoes --- init.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index ab74e0b..0a5a4fa 100644 --- a/init.el +++ b/init.el @@ -2164,6 +2164,7 @@ See also `crux-reopen-as-root-mode'." (:option trashed-action-confirmer #'y-or-n-p)) (setup (:straight undo-fu) + (:option undo-fu-allow-undo-in-region t) (:global "C-/" #'undo-fu-only-undo "C-?" #'undo-fu-only-redo)) @@ -2171,9 +2172,19 @@ See also `crux-reopen-as-root-mode'." (:option undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'" "/git-rebase-todo\\'") undo-fu-session-directory (.etc "undo/" t) - undo-fu-session-compression (executable-find "gzip")) + undo-fu-session-compression (cond + ((executable-find "gzip") 'gz) + ((executable-find "bzip2") 'bz2) + ((executable-find "xz") 'xz) + (t nil))) (global-undo-fu-session-mode +1)) +(setup (:straight (undo-hl + :host github + :repo "casouri/undo-hl")) + (:require) + (:hook-into text-mode prog-mode)) + (setup (:straight unfill)) (setup (:straight valign) -- cgit 1.4.1-21-gabe81