Skip to content

Commit

Permalink
emacs: Significantly increase undo limits
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Mar 13, 2024
1 parent 810bd0e commit 213ddd6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion home-config/dotfiles/emacs.d/config/editing.el
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,19 @@
;; Nicer undo UI
;; ----------------------------------------------------------------------------------

;; The change group at which this size is exceeded is the last one
;; kept.
(setq undo-limit (* 2 1024 1024))
;; The change group at which this size is exceeded is discarded itself
;; (along with all older change groups). There is one exception: the
;; very latest change group is only discarded if it exceeds
;; ‘undo-outer-limit’.
(setq undo-strong-limit (* 10 1024 1024))
;; If at garbage collection time the undo info for the current command
;; exceeds this limit, Emacs discards the info and displays a
;; warning. This is a last ditch limit to prevent memory overflow.
(setq undo-outer-limit (* 50 1024 1024))

(use-package vundo
:bind
("C-x u" . vundo)
Expand Down Expand Up @@ -240,7 +253,6 @@
:custom
(undo-fu-session-directory (expand-file-name "undo-fu-session" back-dir))
(undo-fu-session-compression 'xz)
(undo-fu-session-file-limit 20)
:preface
(declare-function undo-fu-session-global-mode "undo-fu-session.el")
:config
Expand Down

0 comments on commit 213ddd6

Please sign in to comment.