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

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

[elpa] externals/easy-escape eacfc5d 12/27: Don't enable by default


From: ELPA Syncer
Subject: [elpa] externals/easy-escape eacfc5d 12/27: Don't enable by default
Date: Tue, 14 Sep 2021 17:57:31 -0400 (EDT)

branch: externals/easy-escape
commit eacfc5de3448d19e0ba283fd778353048bccb1f4
Author: Clément Pit--Claudel <clement.pitclaudel@live.com>
Commit: Clément Pit--Claudel <clement.pitclaudel@live.com>

    Don't enable by default
---
 README.md      | 11 +++++++++--
 easy-escape.el |  3 ---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index e1623b8..f09e8ca 100644
--- a/README.md
+++ b/README.md
@@ -34,19 +34,26 @@ This will be valid if the package gets accepted on MELPA:
 
 2. Install the package: `M-x package-install RET easy-mode RET`
 
+3. Enable `easy-escape-minor-mode` in lisp buffers:
+
+    ```elisp
+    ;; Replace 'lisp-mode-hook with 'prog-mode-hook to enable everywhere
+    (add-hook 'lisp-mode-hook 'easy-escape-minor-mode)
+    ```
+
 ### Alternative setup
 
 1. Download [this 
file](https://raw.githubusercontent.com/cpitclaudel/easy-escape/master/easy-escape.el)
+
 2. Add this to your .emacs:
 
     ```elisp
     (load-file "PATH-TO-THE-FILE-YOU-JUST-DOWNLOADED")
+    (add-hook 'lisp-mode-hook 'easy-escape-minor-mode)
     ```
 
 ## Fine-tuning
 
-* `easy-escape-minor-mode` is only enabled for lisp derivatives by default. To 
enable in other modes, use `(add-hook 'YOUR-MODE-HOOK 'easy-escape-minor-mode)`.
-
 * If you find the distinction between the fontified double-slash and the
 single slash too subtle, try the following:
 
diff --git a/easy-escape.el b/easy-escape.el
index 297e613..f7f97ae 100644
--- a/easy-escape.el
+++ b/easy-escape.el
@@ -112,8 +112,5 @@ and the single slash too subtle, try the following:
     (font-lock-remove-keywords nil easy-escape--keywords))
   (font-lock-flush))
 
-;;;###autoload
-(add-hook 'lisp-mode-hook 'easy-escape-minor-mode)
-
 (provide 'easy-escape)
 ;;; easy-escape.el ends here



reply via email to

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