Configure undoes

This commit is contained in:
Case Duckworth 2022-04-12 22:40:28 -05:00
parent f93e8df8cf
commit b868fa30e8
1 changed files with 12 additions and 1 deletions

13
init.el
View File

@ -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)