Created
March 21, 2016 01:30
-
-
Save emidln/a46f9d2476f0548808ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun spacemacs//emacs-lisp-eval-region-and-print (beg end) | |
(interactive) | |
(eval-sexp-fu-flash (cons beg end)) | |
(let* ((raw-result (with-output-to-string | |
(eval-region beg end standard-output))) | |
(result (when (>= (length raw-result) 1) | |
(substring raw-result 1 -1)))) | |
(when result | |
(cider--display-interactive-eval-result result end)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment