diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-15 01:31:08 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-15 01:31:08 +0000 |
commit | 598450c62e7ecc971b4cc5227343da10360ba978 (patch) | |
tree | 71c13e5cab7c1e65c4630b32e85bb0e1c958f904 /sx-question-mode.el | |
parent | 615c3404c0aea4db77c6e417a9a9febdf784f245 (diff) |
Close question window with q
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 5 |
1 files changed, 5 insertions, 0 deletions
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> \\{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) |