Files
.emacs.d/modules/editor/siren-undo-fu.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

29 lines
690 B
EmacsLisp

;;; siren-undo-fu.el --- jimeh's Emacs Siren: undo-fu configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for undo-fu.
;;; Code:
(use-package undo-fu
:demand
:general
("M--" 'undo-fu-only-undo)
("M-_" 'undo-fu-only-redo)
("s-z" 'undo-fu-only-undo)
("s-Z" 'undo-fu-only-redo)
:custom
(undo-fu-allow-undo-in-region nil)
(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