diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-31 00:25:00 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-31 00:25:00 +0000 |
| commit | 4ab9da8f434b0d0c17e80e29f7d56e02ae43f8bd (patch) | |
| tree | 2f72246785099291d142bcd462448ff9d445b855 | |
| parent | fe8b552570cf685e27f35d8076b1d737437d97bc (diff) | |
Factor out a heading face
| -rw-r--r-- | helpful.el | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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." |
