From 598450c62e7ecc971b4cc5227343da10360ba978 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 15 Nov 2014 01:31:08 +0000 Subject: Close question window with q --- sx-question-mode.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sx-question-mode.el') diff --git a/sx-question-mode.el b/sx-question-mode.el index 5afb2e8..2ef22cb 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -523,6 +523,11 @@ If DIRECTION is negative, move backwards instead." Letters do not insert themselves; instead, they are commands. \\ \\{sx-question-mode}" + ;; Determine how to close this window. + (unless (window-parameter nil 'quit-restore) + (set-window-parameter + nil 'quit-restore + `(other window nil ,(current-buffer)))) ;; We call font-lock-region manually. See `sx-question-mode--fill-and-fontify' (font-lock-mode -1) (remove-hook 'after-change-functions 'markdown-check-change-for-wiki-link t) -- cgit v1.2.3