aboutsummaryrefslogtreecommitdiff
path: root/sx-question-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r--sx-question-mode.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el
index 8ccc576..e762bab 100644
--- a/sx-question-mode.el
+++ b/sx-question-mode.el
@@ -332,7 +332,6 @@ where `value' is given `face' as its face.
(defun sx-question-mode--fill-and-fontify (text)
"Return TEXT filled according to `markdown-mode'."
(with-temp-buffer
- (erase-buffer)
(insert text)
(markdown-mode)
(font-lock-mode -1)
@@ -344,8 +343,8 @@ where `value' is given `face' as its face.
(font-lock-add-keywords ;; Highlight usernames.
nil
`((,(rx (or blank line-start)
- (group-n 1 (and "@" (1+ (or (syntax word) (syntax symbol)))))
- symbol-end)
+ (group-n 1 (and "@" (1+ (or (syntax word) (syntax symbol)))))
+ symbol-end)
1 font-lock-builtin-face)))
;; Everything.
(font-lock-fontify-region (point-min) (point-max))