From 3ed98a41bbe0701a8e4a2b6d1d466696afa4cda0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 9 May 2020 15:39:37 -0400 Subject: [PATCH] emacs/undo: add "disabling persistent undo history" to readme --- modules/emacs/undo/README.org | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/modules/emacs/undo/README.org b/modules/emacs/undo/README.org index 870498c7a..c98f6e3cc 100644 --- a/modules/emacs/undo/README.org +++ b/modules/emacs/undo/README.org @@ -12,10 +12,12 @@ - [[#prerequisites][Prerequisites]] - [[#features][Features]] - [[#configuration][Configuration]] + - [[#disabling-persistent-undo-history][Disabling persistent undo history]] - [[#troubleshooting][Troubleshooting]] * Description -This module augments Emacs' built-in undo system to be more intuitive. +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. @@ -47,8 +49,20 @@ This module has no prereqisites. * TODO Features # An in-depth list of features, how to use them, and their dependencies. -* TODO Configuration -# How to configure this module, including common problems and how to address them. +* Configuration +** Disabling persistent undo history ++ If you are using =+tree=: + + #+BEGIN_SRC elisp + (after! undo-tree + (setq undo-tree-auto-save-history nil)) + #+END_SRC + ++ If you aren't: + + #+BEGIN_SRC elisp + (remove-hook 'undo-fu-mode-hook #'global-undo-fu-session-mode) + #+END_SRC * TODO Troubleshooting # Common issues and their solution, or places to look for help.