emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/undo-fu f9c39c248c 81/82: readme: update to use evil-modes


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu f9c39c248c 81/82: readme: update to use evil-modes undo-fu support
Date: Thu, 7 Jul 2022 12:04:56 -0400 (EDT)

branch: elpa/undo-fu
commit f9c39c248cb965cd3c7cb3c8e15a4eee71921f8c
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    readme: update to use evil-modes undo-fu support
---
 readme.rst | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/readme.rst b/readme.rst
index 9732f98364..a545bfea94 100644
--- a/readme.rst
+++ b/readme.rst
@@ -47,13 +47,6 @@ Key Bindings
 
 You will need to map these to keys yourself.
 
-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
@@ -62,6 +55,8 @@ Key binding example for typical ``Ctrl-Z``, ``Ctrl-Shift-Z`` 
keys:
    (global-set-key (kbd "C-z")   'undo-fu-only-undo)
    (global-set-key (kbd "C-S-z") 'undo-fu-only-redo)
 
+Evil mode now supports ``undo-fu``, setting ``evil-undo-system`` to 
``'undo-fu`` uses evil-modes default bindings.
+
 
 Customization
 -------------
@@ -130,6 +125,8 @@ Evil mode can be configured to use ``undo-fu`` by default.
      :init
      (setq evil-undo-system 'undo-fu))
 
+   (use-package undo-fu)
+
 
 Other Packages
 ==============



reply via email to

[Prev in Thread] Current Thread [Next in Thread]