diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-20 15:29:30 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-22 10:46:41 -0200 |
commit | 7902a1e1f1b40f04aeb728b0b39fc73bf54b160f (patch) | |
tree | c70c27b7b52416388a8f2550bb13c6d801a1033a | |
parent | 118f22e76b48201e6be44ce83f3e72afcbbcf4ad (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.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index cc7799d..a60cf3a 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) |