commit 5f3a3709cabbec8e704bc02e54fa02976ca3c20c
parent 7587ccca48c94849afa24ed2637cc13e961de265
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Sat, 2 Sep 2017 21:46:45 +0100
Also show the value of variables
Closes #15
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -537,6 +537,11 @@ state of the current symbol."
;; helpfns+ or counsel-info-lookup-symbol.
(helpful--format-docstring docstring)))
+ (when (not helpful--callable-p)
+ (insert
+ (helpful--heading "\n\nValue\n")
+ (helpful--pretty-print (symbol-value helpful--sym))))
+
;; Show keybindings.
;; TODO: allow users to conveniently add and remove keybindings.
(when (commandp helpful--sym)