diff options
author | Amin Bandali <amin@aminb.org> | 2018-07-22 18:51:32 -0400 |
---|---|---|
committer | Amin Bandali <amin@aminb.org> | 2018-07-22 18:51:32 -0400 |
commit | bffae347346e1ea083c0c25640dc4637d99d099b (patch) | |
tree | 6a4952829f9a5b279ccdc52059afaf7194f4e1f3 | |
parent | 8e4862e25a3d7f359895eb36a23476e131364cb0 (diff) | |
download | configs-bffae347346e1ea083c0c25640dc4637d99d099b.tar.gz configs-bffae347346e1ea083c0c25640dc4637d99d099b.tar.xz configs-bffae347346e1ea083c0c25640dc4637d99d099b.zip |
[emacs] adjust my preferred undo mechanism
have undo tree save history, and leave emacs' undo intact, for cases
when undo tree's history gets corrupt at least i'd have functioning
undo for the changes i made in the current session
-rw-r--r-- | init.org | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -627,6 +627,7 @@ Roll your own modal mode ("n" next-line) ("p" previous-line) ("f" forward-char) + ("/" undo) ("SPC" (("b" (("b" ibuffer-list-buffers) ("k" kill-this-buffer) ("o" other-window) @@ -848,13 +849,14 @@ TODO: break this giant source block down into individual org sections. (use-package undo-tree :ryo - ("/" undo-tree-undo) + ("?" undo-tree-undo) ("_" undo-tree-redo) - :bind (("C-/" . undo-tree-undo) + :bind (("C-?" . undo-tree-undo) ("M-_" . undo-tree-redo)) :config (global-undo-tree-mode) - (setq undo-tree-mode-lighter "")) + (setq undo-tree-mode-lighter "" + undo-tree-auto-save-history t)) #+end_src * Editing |