From: Philip Kaludercic Date: Sat, 17 Dec 2022 14:54:40 +0000 (+0100) Subject: Allow customising windmove user options with an empty prefix X-Git-Tag: emacs-29.0.90~1083 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d1e0542f33610b965a10b988717bf5fd8ac64165;p=emacs.git Allow customising windmove user options with an empty prefix * lisp/windmove.el (windmove--default-keybindings-type): Handle nil as a prefix value. (Bug#60161) --- 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'