aboutsummaryrefslogtreecommitdiff
path: root/stack-question-list.el
diff options
context:
space:
mode:
Diffstat (limited to 'stack-question-list.el')
-rw-r--r--stack-question-list.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/stack-question-list.el b/stack-question-list.el
index 1a23cde..efacb7f 100644
--- a/stack-question-list.el
+++ b/stack-question-list.el
@@ -111,8 +111,13 @@ Letters do not insert themselves; instead, they are commands.
#'stack-question-list--update-mode-line nil t)
(tabulated-list-init-header))
-(defvar stack-question-list-date-sort-method 'last_activity_date
- "Parameter which controls date sorting.")
+(defcustom stack-question-list-date-sort-method 'last_activity_date
+ "Parameter which controls date sorting."
+ ;; This should be made into a (choice ...) of constants.
+ :type 'symbol
+ ;; Add a setter to protect the value.
+ :group 'stack-question-list)
+
(defun stack-question-list--date-sort (x y)
"Non-nil if tabulated-entry X is newer than Y."