diff options
author | Sean Allred <code@seanallred.com> | 2014-11-26 14:58:50 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-26 14:58:50 -0500 |
commit | 31549b4e5a9e67180ad6a0d0b8b61e17274b54a2 (patch) | |
tree | 5a38ff714fd4337a071d97884983b431c742598c /sx-question-mode.el | |
parent | 14c8351e551c6c2ee30486948fdc857b5813ad52 (diff) |
Use customizable deleted-user structure
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index 947c35d..a80704c 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -103,6 +103,13 @@ If WINDOW is given, use that to display the buffer." "Face used on the question title in the question buffer." :group 'sx-question-mode-faces) +(defcustom sx-question-mode-deleted-user + '((display_name . "(deleted user)")) + "The structure used to represent a deleted account." + :type '(alist :options (display_name)) + :risky t + :group 'sx-question-mode) + (defcustom sx-question-mode-header-title "\n" "String used before the question title at the header." :type 'string @@ -272,7 +279,7 @@ DATA can represent a question or an answer." (format sx-question-mode-last-edit-format (sx-time-since .last_edit_date) (sx-question-mode--propertize-display-name - (if .last_editor .last_editor .owner))))) + (or .last_editor sx-question-mode-deleted-user))))) 'sx-question-mode-date) (sx-question-mode--insert-header sx-question-mode-header-score |