Created
November 18, 2011 02:06
-
-
Save borkdude/1375329 to your computer and use it in GitHub Desktop.
elisp function to evaluate last sexp and insert the result on the next line prefixed by ;=>
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 eval-sexp-comment-result () | |
(interactive) | |
(save-excursion | |
(slime-eval-print-last-expression (slime-last-expression))) | |
(newline) | |
(insert ";=> ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment