Skip to content

Commit

Permalink
Pretty print in emacs-lisp mode
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed Apr 29, 2020
1 parent 0a99439 commit 6d12867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions refine.el
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Returns nil if SYMBOL is not a custom variable."
(defun refine--pretty-format (value)
"Pretty print VALUE as a string."
(let ((cl-formatted (with-temp-buffer
(emacs-lisp-mode)
(cl-prettyprint value)
(s-trim (buffer-string)))))
(cond ((stringp value)
Expand Down

0 comments on commit 6d12867

Please sign in to comment.