summaryrefslogtreecommitdiff
path: root/lisp/windmove.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-12-17 15:54:40 +0100
committerPhilip Kaludercic <philipk@posteo.net>2022-12-18 12:45:22 +0100
commitd1e0542f33610b965a10b988717bf5fd8ac64165 (patch)
treef927f9961efec7dd1779af3ad5c56b0391612939 /lisp/windmove.el
parentc2375e77914f5b72abe1b43e554d36b045af1b06 (diff)
downloademacs-d1e0542f33610b965a10b988717bf5fd8ac64165.tar.gz
Allow customising windmove user options with an empty prefix
* lisp/windmove.el (windmove--default-keybindings-type): Handle nil as a prefix value. (Bug#60161)
Diffstat (limited to 'lisp/windmove.el')
-rw-r--r--lisp/windmove.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/windmove.el b/lisp/windmove.el
index 00e76df0a01..4311f082de6 100644
--- a/lisp/windmove.el
+++ b/lisp/windmove.el
@@ -776,7 +776,8 @@ Default value of MODIFIERS is `shift-super'."
(defconst windmove--default-keybindings-type
`(choice (const :tag "Don't bind" nil)
(cons :tag "Bind using"
- (key-sequence :tag "Prefix")
+ (choice (key-sequence :tag "Prefix")
+ (const :tag "No Prefix" nil))
(set :tag "Modifier"
:greedy t
;; See `(elisp) Keyboard Events'