aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2021-07-06 20:29:38 +0200
committerWilfred Hughes <me@wilfred.me.uk>2022-08-29 21:56:13 -0700
commit6633d82c6e3c921c486ec284cb6542f33278b605 (patch)
treeaba8a7962bef10dc973ab6a771ea29c83d368934 /helpful.el
parentcb9beb0bd6857d9262c935e42a9346331cee4c45 (diff)
Assign `list-buffers-directory` to help topic
This displays the help topic in `M-x list-buffers` instead of showing an empty path column.
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index 8710e1c..5c0494e 100644
--- a/helpful.el
+++ b/helpful.el
@@ -149,6 +149,8 @@ can make Helpful very slow.")
(setq helpful--callable-p callable-p)
(setq helpful--start-buffer current-buffer)
(setq helpful--associated-buffer current-buffer)
+ (setq list-buffers-directory
+ (if (symbolp symbol) (format "%s: %s" (helpful--kind-name symbol callable-p) symbol) "lambda"))
(if (helpful--primitive-p symbol callable-p)
(setq-local comment-start "//")
(setq-local comment-start ";")))