From 5b054bdd07c2b78d89e0159cdda52e0b9b1b1c61 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 18 Jun 2022 00:25:18 +0100 Subject: [PATCH] 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. --- modules/editor/siren-undo-fu.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/editor/siren-undo-fu.el b/modules/editor/siren-undo-fu.el index 2588e98..d6fe16f 100644 --- a/modules/editor/siren-undo-fu.el +++ b/modules/editor/siren-undo-fu.el @@ -16,7 +16,13 @@ :custom (undo-fu-allow-undo-in-region nil) - (undo-fu-ignore-keyboard-quit t)) + (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