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

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

[nongnu] elpa/undo-fu-session 35d4cf3771 07/53: Update commentary to mak


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu-session 35d4cf3771 07/53: Update commentary to make it more useful.
Date: Thu, 7 Jul 2022 12:05:14 -0400 (EDT)

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

    Update commentary to make it more useful.
---
 undo-fu-session.el | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/undo-fu-session.el b/undo-fu-session.el
index 3f80d49a64..0b6f6df99c 100644
--- a/undo-fu-session.el
+++ b/undo-fu-session.el
@@ -28,14 +28,26 @@
 ;; This extension provides a way to use undo steps of
 ;; individual file buffers persistently.
 ;;
-;; Write the following code to your .emacs:
+
+;;; Usage
+
+;;
+;; Write the following code to your .emacs file:
+;;
+;;   (require 'undo-fu-session)
+;;   (global-undo-fu-session-mode)
+;;
+;; Or with `use-package':
+;;
+;;   (use-package undo-fu-session)
+;;   (global-undo-fu-session-mode)
+;;
+;; If you prefer to enable this per-mode, you may do so using
+;; mode hooks instead of calling `global-undo-fu-session-mode'.
+;; The following example enables this for org-mode:
 ;;
-;; (require 'undo-fu-session)
-;; (global-undo-fu-session-mode)
+;;   (add-hook 'org-mode-hook (lambda () (undo-fu-session-mode))
 ;;
-;; Now you can record and recover undo-fu-session by typing
-;; C-x C-s (save-buffer) an C-x C-f (find-file).
-;; And then type C-/ (undo).
 
 ;;; Code:
 



reply via email to

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