From e4ef9753ba024dbc2c96e17a66cbfc1cb871c6cc Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 4 Nov 2014 09:24:04 +0000 Subject: Turn stack-question-list-date-sort-method into a defcustom --- stack-question-list.el | 9 +++++++-- 1 file 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." -- cgit v1.2.3