From 96a45d820fb4499acadb2e8103ba786d06054e03 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Fri, 14 Nov 2014 14:28:42 +0000 Subject: Improve comment formating --- sx-question-mode.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sx-question-mode.el') diff --git a/sx-question-mode.el b/sx-question-mode.el index 4aa2688..72b139d 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -168,11 +168,18 @@ editor's name." :type 'string :group 'sx-question-mode) -(defcustom sx-question-mode-comments-title " Comments" +(defcustom sx-question-mode-comments-title " Comments" "Title used at the start of \"Comments\" sections." :type 'string :group 'sx-question-mode) +(defcustom sx-question-mode-comments-format "%s: %s\n" + "Format used to display comments. +First \"%s\" is replaced with user name. +Second \"%s\" is replaced with the comment." + :type 'string + :group 'sx-question-mode) + ;;; Printing a question's content ;;;; Functions @@ -274,13 +281,6 @@ DATA can represent a question or an answer." (propertize .display_name 'font-lock-face 'sx-question-mode-author))) -(defcustom sx-question-mode-comments-format " %s: %s\n" - "Format used to display comments. -First \"%s\" is replaced with user name. -Second \"%s\" is replaced with the comment." - :type 'string - :group 'sx-question-mode) - (defun sx-question-mode--print-comment (data) "Print the comment described by alist DATA." (sx-assoc-let data -- cgit v1.2.3