From 5f3a3709cabbec8e704bc02e54fa02976ca3c20c Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 2 Sep 2017 21:46:45 +0100 Subject: Also show the value of variables Closes #15 --- helpful.el | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.0