aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-09-02 21:46:45 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-09-02 21:46:45 +0100
commit5f3a3709cabbec8e704bc02e54fa02976ca3c20c (patch)
treef8716084b1c77888826413ea60e6fa054f2b7bcf
parent7587ccca48c94849afa24ed2637cc13e961de265 (diff)
Also show the value of variables
Closes #15
-rw-r--r--helpful.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index afae6fa..fcc1eaa 100644
--- 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)