[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/undo-fu 85fa6556e9 04/82: Add evil-mode key binding exampl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/undo-fu 85fa6556e9 04/82: Add evil-mode key binding example |
Date: |
Thu, 7 Jul 2022 12:04:47 -0400 (EDT) |
branch: elpa/undo-fu
commit 85fa6556e999e1d59f92b2e0a8525be90accf1d2
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Add evil-mode key binding example
---
readme.rst | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/readme.rst b/readme.rst
index 9818950dfe..61449df73c 100644
--- a/readme.rst
+++ b/readme.rst
@@ -39,9 +39,20 @@ This package exposes the following functions:
- ``undo-fu-only-redo``
- ``undo-fu-only-redo-all``
+
+Key Bindings
+------------
+
You will need to make these to keys yourself.
-Key binding example:
+Key binding example for evil-mode:
+
+.. code-block:: elisp
+
+ (define-key evil-normal-state-map "u" 'undo-fu-only-undo)
+ (define-key evil-normal-state-map "\C-r" 'undo-fu-only-redo)
+
+Key binding example for typical ``Ctrl-Z``, ``Ctrl-Shift-Z`` keys:
.. code-block:: elisp
@@ -49,10 +60,12 @@ Key binding example:
(global-set-key (kbd "C-z") 'undo-fu-only-undo)
(global-set-key (kbd "C-S-z") 'undo-fu-only-redo)
-Assuming you have these key bindings set, you can do the following.
-- Holding ``Ctrl-Z`` undoes all available actions.
-- Holding ``Ctrl-Shift-Z`` redoes all actions until the first undo performed
after an edit.
+Details
+-------
+
+- Holding the undo-key undoes all available actions.
+- Holding the redo-key redoes all actions until the first undo performed after
an edit.
- Redoing beyond this point is prevented, as you might expect since this is
how undo/redo normally works,
this means you can conveniently hold the redo key to reach the newest state
of the document.
- [nongnu] branch elpa/undo-fu created (now 97e7f4f6e0), ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 85fa6556e9 04/82: Add evil-mode key binding example,
ELPA Syncer <=
- [nongnu] elpa/undo-fu c20637ffe3 11/82: Fix typo, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 9cfc95948a 19/82: Cleanup: remove unnecessary calculation, auto-load redo-all, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu f8f416c0d4 25/82: readme: capitalize 'Emacs', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu f53b3e3963 26/82: Use eval-after-load instead of with-eval-after-load for Emacs 24.3, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 5c9aadad4b 27/82: Support using undo-fu-only-redo after regular undo/undo-only, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 6e8095c449 29/82: Suppress compiler warnings about evil functions, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 7d600ab8f2 30/82: Fix 'success' assignment (internal variable), ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 3c366ef52a 33/82: Add '.elisp-autofmt' to enable auto-formatting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 4d635722a3 34/82: readme: minor improvements to wording, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 88c4086e12 43/82: Add 'undo-fu-ignore-keyboard-quit' & 'undo-fu-disable-checkpoint', ELPA Syncer, 2022/07/07