mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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."
|
||||
|
Reference in New Issue
Block a user