From 594326768198d903d4f7ea49a27a9492ea9e88a4 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 27 Feb 2025 08:59:49 -0500 Subject: [PATCH] Closes #30: Increase undo limits to prevent early truncation of undo history --- init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.el b/init.el index 65c4f8e..66e7bbc 100644 --- a/init.el +++ b/init.el @@ -25,6 +25,14 @@ ;; Don't ping things that look like domain names. (setq ffap-machine-p-known 'reject) +;;; Undo/redo + +;; Increase undo limits to prevent early garbage collection from aggressively +;; truncating undo history +(setq undo-limit (* 13 160000) + undo-strong-limit (* 13 240000) + undo-outer-limit (* 13 24000000)) + ;;; package.el (when (bound-and-true-p minimal-emacs-package-initialize-and-refresh)