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

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

[elpa] externals/jinx 482d27e830: Introduce jinx-misspelled-map


From: ELPA Syncer
Subject: [elpa] externals/jinx 482d27e830: Introduce jinx-misspelled-map
Date: Sun, 26 Mar 2023 12:59:03 -0400 (EDT)

branch: externals/jinx
commit 482d27e830dda015d9a9348ad581f429af07f93b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Introduce jinx-misspelled-map
---
 jinx.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/jinx.el b/jinx.el
index 340fec9189..77875831e5 100644
--- a/jinx.el
+++ b/jinx.el
@@ -245,7 +245,13 @@ Predicate may return a position to skip forward.")
 (put 'jinx 'modification-hooks    (list #'jinx--overlay-modified))
 (put 'jinx 'insert-in-front-hooks (list #'jinx--overlay-modified))
 (put 'jinx 'insert-behind-hooks   (list #'jinx--overlay-modified))
-(put 'jinx 'keymap                (define-keymap "<mouse-1>" #'jinx-correct))
+(put 'jinx 'keymap                'jinx-misspelled-map)
+
+(defvar-keymap jinx-misspelled-map
+  :doc "Keymap attached to misspelled words."
+  "<mouse-1>" #'jinx-correct)
+
+(fset 'jinx-misspelled-map jinx-misspelled-map)
 
 ;;;; Predicates
 



reply via email to

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