>From feca8985392c227ee7caaaa69ac8bdc990a0256b Mon Sep 17 00:00:00 2001 From: Philip Kaludercic 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. --- lisp/windmove.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/windmove.el b/lisp/windmove.el index 00e76df0a0..4311f082de 100644 --- a/lisp/windmove.el +++ b/lisp/windmove.el @@ -776,7 +776,8 @@ windmove-swap-states-default-keybindings (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.35.1