From d7bdb5362275a8f82a45cad6eb3583f3f48f823a Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Mon, 4 Feb 2019 16:22:26 -0600 Subject: [PATCH] Make aw-make-frame disable-able There are times when I don't want a new frame made under any circumstances. If that's the case, I don't want to accidentally trigger aw-make-frame by hitting the wrong key at the dispatch. Setting aw-make-frame-char to nil takes it off the key list, but this requires a slight change to the dispatch check. --- ace-window.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ace-window.el b/ace-window.el index b89daf6..e7c78b4 100644 --- a/ace-window.el +++ b/ace-window.el @@ -431,7 +431,7 @@ The new frame is set to the same size as the previous frame, offset by (avy-mouse-event-window char))) ((= char (aref (kbd "C-g") 0)) (throw 'done 'exit)) - ((= char aw-make-frame-char) + ((and aw-make-frame-char (= char aw-make-frame-char)) ;; Make a new frame and perform any action on its window. (let ((start-win (selected-window)) (end-win (frame-selected-window (aw-make-frame))))