Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created November 18, 2011 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/1375329 to your computer and use it in GitHub Desktop.
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 ;=>
(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