File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ There are a few things that you can do. There are customizable variables:
61
61
- resize-window-coarse-argument (default: 5)
62
62
- resize-window-fine-argument (default: 1)
63
63
- resize-window-allow-backgrounds (default: t)
64
+ - resize-window-unregistered-key-quit (default: nil)
64
65
- resize-window-swap-capital-and-lowercase-behavior (default: nil)
65
66
- resize-window-notify-with-messages (default: t)
66
67
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ This is also valuable to see that you are in resize mode."
82
82
:type 'boolean
83
83
:group 'resize-window )
84
84
85
+ (defcustom resize-window-unregistered-key-quit nil
86
+ " Quit when an unregistered key is pressed.
87
+ If nil do not quit and notify the unregistered key pressed."
88
+ :type 'boolean
89
+ :group 'resize-window )
90
+
85
91
(defcustom resize-window-swap-capital-and-lowercase-behavior nil
86
92
" Reverse default behavior of lower case and uppercase arguments."
87
93
:type 'boolean
@@ -261,7 +267,8 @@ to resize right."
261
267
(resize-window--execute-action capital t ))
262
268
(; ; NOTE: Don't use `=' , if `char' is a symbol like
263
269
; ; 'insertchar it will fail. Use `equal' instead.
264
- (or (equal char ?q )
270
+ (or resize-window-unregistered-key-quit
271
+ (equal char ?q )
265
272
(equal char ?Q )
266
273
(equal char (string-to-char " " )))
267
274
(setq reading-characters nil )
You can’t perform that action at this time.
0 commit comments