branch: elpa/undo-fu-session
commit 3a406afabf6998bcae0df3d259bd9ecf8ec00e84
Author: Campbell Barton <ideasma...@gmail.com>
Commit: Campbell Barton <ideasma...@gmail.com>

    readme: simplify adding the hook in the readme
---
 readme.rst | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/readme.rst b/readme.rst
index a9f0c44378..7957ba405d 100644
--- a/readme.rst
+++ b/readme.rst
@@ -57,9 +57,7 @@ you can enable this using a mode hook for e.g.
 .. code-block:: elisp
 
    ;; Only use undo-fu-session for org mode.
-   (add-hook 'org-mode-hook
-     (lambda ()
-       (undo-fu-session-mode))
+   (add-hook 'org-mode-hook #'undo-fu-session-mode)
 
 
 Customization

Reply via email to