aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-12-31 00:25:00 +0000
committerWilfred Hughes <me@wilfred.me.uk>2017-12-31 00:25:00 +0000
commit4ab9da8f434b0d0c17e80e29f7d56e02ae43f8bd (patch)
tree2f72246785099291d142bcd462448ff9d445b855
parentfe8b552570cf685e27f35d8076b1d737437d97bc (diff)
Factor out a heading face
-rw-r--r--helpful.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index 2eef9d9..b27e75c 100644
--- a/helpful.el
+++ b/helpful.el
@@ -119,9 +119,13 @@ To disable cleanup entirely, set this variable to nil. See also
(kill-buffer (ring-remove helpful--buffers))))
buf))
+(defface helpful-heading
+ '((t (:weight bold)))
+ "Face used for headings in Helpful buffers.")
+
(defun helpful--heading (text)
"Propertize TEXT as a heading."
- (format "%s\n" (propertize text 'face 'bold)))
+ (format "%s\n" (propertize text 'face 'helpful-heading)))
(defun helpful--format-closure (sym form)
"Given a closure, return an equivalent defun form."