aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-07-22 13:11:08 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-07-22 13:11:08 +0100
commit9ce6b1c9c805ae68ed57d711abf344d2f1ce3ce5 (patch)
treed9a48d450d96fedee5163d535d6709053c763db3
parenteae94d82684c2b2addde75b19d564d2e4677d4ca (diff)
sort symbol properties
-rw-r--r--helpful.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index 932a42e..8dc6c93 100644
--- a/helpful.el
+++ b/helpful.el
@@ -69,6 +69,10 @@ This allows us to distinguish strings from symbols."
"Return a string describing all the properties of SYMBOL."
(let* ((syms-and-vals
(-partition 2 (symbol-plist symbol)))
+ (syms-and-vals
+ (-sort (-lambda ((sym1 _) (sym2 _))
+ (string-lessp (symbol-name sym1) (symbol-name sym2)))
+ syms-and-vals))
(lines
(-map
(-lambda ((sym val))