aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-20 15:29:30 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-20 15:29:30 -0200
commit139c4d81545cd8428de7864294c754fbe8f3267e (patch)
tree4a55eed5c70a4940e4efb7f4e2adf574d7449b0f
parent30eeaaad19858edb4543d60772b93adb7e7736be (diff)
Displaying questions uses pop-to-buffer instead of switch by default
Fixes #153 See variable `sx-question-mode-display-buffer-function'
-rw-r--r--sx-question-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el
index 8fe6dfb..8d06078 100644
--- a/sx-question-mode.el
+++ b/sx-question-mode.el
@@ -30,11 +30,13 @@
;;; Displaying a question
-(defcustom sx-question-mode-display-buffer-function #'switch-to-buffer
+(defcustom sx-question-mode-display-buffer-function #'pop-to-buffer
"Function used to display the question buffer.
Called, for instance, when hitting \\<sx-question-list-mode-map>`\\[sx-question-list-display-question]' on an entry in the
question list.
-This is not used when navigating the question list with `\\[sx-question-list-view-next]."
+This is not used when navigating the question list with `\\[sx-question-list-view-next].
+
+Common values for this variable are `pop-to-buffer' and `switch-to-buffer'."
:type 'function
:group 'sx-question-mode)