diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-04 09:24:04 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-04 09:24:04 +0000 |
commit | e4ef9753ba024dbc2c96e17a66cbfc1cb871c6cc (patch) | |
tree | 5cb47839643b317699c0d8946953d494bf89ba6a /stack-question-list.el | |
parent | b26e8bebb1121954e090f350cf8b17e832daccef (diff) |
Turn stack-question-list-date-sort-method into a defcustom
Diffstat (limited to 'stack-question-list.el')
-rw-r--r-- | stack-question-list.el | 9 |
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." |