From d1e0542f33610b965a10b988717bf5fd8ac64165 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philipk@posteo.net> Date: Sat, 17 Dec 2022 15:54:40 +0100 Subject: [PATCH] Allow customising windmove user options with an empty prefix * lisp/windmove.el (windmove--default-keybindings-type): Handle nil as a prefix value. (Bug#60161) --- lisp/windmove.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- 2.39.5