Configure undoes
This commit is contained in:
parent
f93e8df8cf
commit
b868fa30e8
13
init.el
13
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)
|
||||
|
|
Loading…
Reference in New Issue