Files
.emacs.d/modules/editor/siren-undo-fu.el
Jim Myhrberg 5b054bdd07 fix(editor/undo): increase undo limits when using undo-fu
Turns out undo-tree massively increases undo limits, and the defaults
seem to cut off history for me much sooner than I'd like. So I set the
limits to the same high values are undo-tree does.
2022-06-18 00:25:18 +01:00

29 lines
659 B
EmacsLisp

;;; siren-undo-fu.el --- jimeh's Emacs Siren: undo-fu configuration.
;;; Commentary:
;; Basic configuration for undo-fu.
;;; Code:
(use-package undo-fu
:demand
:general
("M--" 'undo-fu-only-undo)
("M-_" 'undo-fu-only-redo)
("s-z" 'undo-fu-only-undo)
("s-Z" 'undo-fu-only-redo)
:custom
(undo-fu-allow-undo-in-region nil)
(undo-fu-ignore-keyboard-quit t)
;; Customize undo limits to ensure lots of history is retained, essentially
;; settings limits to the same values as undo-tree does.
(undo-limit 80000000)
(undo-strong-limit 120000000)
(undo-outer-limit 360000000))
(provide 'siren-undo-fu)
;;; siren-undo-fu.el ends here