perf(undo): tune undo limits

Store a little less undo history, to improve general runtime performance
by reducing the number of idle markers in long-lived sessions,
particularly in shell emulation buffers.
This commit is contained in:
Henrik Lissner
2025-04-11 00:01:29 -04:00
parent cbdce0dc71
commit 7b5bcc00d4

View File

@ -5,9 +5,9 @@
:hook (doom-first-buffer . undo-fu-mode)
:config
;; Increase undo history limits to reduce likelihood of data loss
(setq undo-limit 400000 ; 400kb (default is 160kb)
undo-strong-limit 3000000 ; 3mb (default is 240kb)
undo-outer-limit 48000000) ; 48mb (default is 24mb)
(setq undo-limit 256000 ; 256kb (default is 160kb)
undo-strong-limit 2000000 ; 2mb (default is 240kb)
undo-outer-limit 36000000) ; 36mb (default is 24mb)
(define-minor-mode undo-fu-mode
"Enables `undo-fu' for the current session."