summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-04-12 22:40:28 -0500
committerCase Duckworth2022-04-12 22:40:28 -0500
commitb868fa30e8603e93cee823e245298548a85652dc (patch)
tree265fafbb66aaaa0600a4bbab17c400b5f5ff1f36
parentBind org-store-link (diff)
downloademacs-b868fa30e8603e93cee823e245298548a85652dc.tar.gz
emacs-b868fa30e8603e93cee823e245298548a85652dc.zip
Configure undoes
-rw-r--r--init.el13
1 files changed, 12 insertions, 1 deletions
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'."
2164 (:option trashed-action-confirmer #'y-or-n-p)) 2164 (:option trashed-action-confirmer #'y-or-n-p))
2165 2165
2166(setup (:straight undo-fu) 2166(setup (:straight undo-fu)
2167 (:option undo-fu-allow-undo-in-region t)
2167 (:global "C-/" #'undo-fu-only-undo 2168 (:global "C-/" #'undo-fu-only-undo
2168 "C-?" #'undo-fu-only-redo)) 2169 "C-?" #'undo-fu-only-redo))
2169 2170
@@ -2171,9 +2172,19 @@ See also `crux-reopen-as-root-mode'."
2171 (:option undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'" 2172 (:option undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'"
2172 "/git-rebase-todo\\'") 2173 "/git-rebase-todo\\'")
2173 undo-fu-session-directory (.etc "undo/" t) 2174 undo-fu-session-directory (.etc "undo/" t)
2174 undo-fu-session-compression (executable-find "gzip")) 2175 undo-fu-session-compression (cond
2176 ((executable-find "gzip") 'gz)
2177 ((executable-find "bzip2") 'bz2)
2178 ((executable-find "xz") 'xz)
2179 (t nil)))
2175 (global-undo-fu-session-mode +1)) 2180 (global-undo-fu-session-mode +1))
2176 2181
2182(setup (:straight (undo-hl
2183 :host github
2184 :repo "casouri/undo-hl"))
2185 (:require)
2186 (:hook-into text-mode prog-mode))
2187
2177(setup (:straight unfill)) 2188(setup (:straight unfill))
2178 2189
2179(setup (:straight valign) 2190(setup (:straight valign)