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

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

[nongnu] elpa/evil-escape 1d09324c72 011/133: Fix byte-compilation and d


From: ELPA Syncer
Subject: [nongnu] elpa/evil-escape 1d09324c72 011/133: Fix byte-compilation and defcustom
Date: Wed, 3 Jan 2024 21:59:48 -0500 (EST)

branch: elpa/evil-escape
commit 1d09324c726b967c28145afa8a723ccfaeb12e25
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>

    Fix byte-compilation and defcustom
---
 README.md      |  8 +++-----
 evil-escape.el | 20 +++++++++++++-------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md
index 16be607a22..4a1cb9780a 100644
--- a/README.md
+++ b/README.md
@@ -40,11 +40,9 @@ To toggle the `evil-escape` mode globally:
 
 ## Customization
 
-Open the customization group buffer:
+The key sequence can be customized with the variable 
`evil-escape-key-sequence`.
 
-    M-x customize-group RET evil-escape RET
-
-There you can change the key sequence to your desire.
-The default value is `fd`.
+**Note:** The variable `evil-escape-key-sequence` must be set before requiring
+`evil-escape`.
 
 [MELPA]: http://melpa.org/
diff --git a/evil-escape.el b/evil-escape.el
index d41ce1232b..0f565c0b86 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -5,7 +5,7 @@
 ;;;; Author: Sylvain Benner <sylvain.benner@gmail.com>
 ;; Keywords: convenience editing evil
 ;; Created: 22 Oct 2014
-;; Version: 1.01
+;; Version: 1.02
 ;; Package-Requires: ((emacs "24") (evil "1.0.9") (key-chord "0.6"))
 ;; URL: https://github.com/syl20bnr/evil-escape
 
@@ -27,6 +27,8 @@
 ;;; Commentary:
 
 ;; Press `fd` quickly to:
+;; ----------------------
+
 ;;   - escape from all evil states to normal state
 ;;   - escape from evil-lisp-state to normal state
 ;;   - abort evil ex command
@@ -37,8 +39,12 @@
 ;;   - hide neotree buffer
 ;; And more to come !
 
+;; Configuration:
+;; --------------
+
 ;; The key sequence can be customized with the variable
-;; `evil-escape-key-sequence`
+;; `evil-escape-key-sequence'
+;; It must be set before requiring evil-escape.
 
 ;; More information in the readme of the repository:
 ;; https://github.com/syl20bnr/evil-escape
@@ -53,11 +59,11 @@
   :prefix "evil-escape-"
   :group 'evil)
 
-;;;###autoload
-(defcustom evil-escape-key-sequence (kbd "fd")
-  "Two keys sequence to escape from insert state."
-  :type 'key-sequence
-  :group 'evil-escape)
+(eval-and-compile
+  (defcustom evil-escape-key-sequence (kbd "fd")
+    "Two keys sequence to escape from insert state."
+    :type 'key-sequence
+    :group 'evil-escape))
 
 ;;;###autoload
 (define-minor-mode evil-escape-mode



reply via email to

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