aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2019-03-03 22:32:39 +0000
committerWilfred Hughes <me@wilfred.me.uk>2019-03-03 22:32:39 +0000
commit72e93276fc0032e434f2acf62d8d63d51557e55b (patch)
tree3f82efbc41ea26bcb9daa8745e662f964b05997f /helpful.el
parent28bae3e2bd64c6b89c1607c7b1235b306fa7220b (diff)
Set comment-start inside helpful buffers
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index 8619260..efbe1d3 100644
--- a/helpful.el
+++ b/helpful.el
@@ -144,7 +144,10 @@ can make Helpful very slow.")
(setq helpful--sym symbol)
(setq helpful--callable-p callable-p)
(setq helpful--start-buffer current-buffer)
- (setq helpful--associated-buffer current-buffer))
+ (setq helpful--associated-buffer current-buffer)
+ (if (helpful--primitive-p symbol callable-p)
+ (setq-local comment-start "//")
+ (setq-local comment-start ";")))
buf))
(defface helpful-heading