doomemacs/modules/emacs/undo
Henrik Lissner cdbd39ba26 emacs/undo: increase undo-outer-limit
Was missing a 0 (a typo), which meant it was less than its default
value, thus having the opposite effect and making data loss *more*
likely.

Also got rid of outdated comments; I think those have been around since
the sub-v2.0 days of Doom.
2021-07-12 21:59:52 -04:00
..
config.el emacs/undo: increase undo-outer-limit 2021-07-12 21:59:52 -04:00
packages.el Bump :emacs undo 2021-05-06 18:36:32 -04:00
README.org s/prereqisites/prerequisites 2021-03-06 12:05:55 -05:00

emacs/undo

Description

This module augments Emacs' built-in undo system to be more intuitive and to persist across Emacs sessions.

Maintainers

This module has no dedicated maintainers.

Module Flags

  • +tree Uses undo-tree instead of undo-fu, which is a little less stable, but offers branching undo history and a visualizer for navigating it.

Hacks

  • Both undo-fu and undo-tree have been modified to use zstd to compress undo history if it is available.
  • undo-tree only

    • Text properties are stripped from undo history to shrink it.
    • Undo-tree is too chatty about saving its history files. This has be "silenced". i.e. It's visible in \*Messages\*, but won't appear in your minibuffer.
  • unfo-fu only

    • Doom defines undo-fu-mode to make it easier to add hooks/mode-local keybinds.

Prerequisites

This module has no prerequisites.

TODO Features

Configuration

Disabling persistent undo history

  • If you are using +tree:

    (after! undo-tree
      (setq undo-tree-auto-save-history nil))
  • If you aren't:

    (remove-hook 'undo-fu-mode-hook #'global-undo-fu-session-mode)

TODO Troubleshooting