Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created November 18, 2011 02:06
Show Gist options
  • Select an option

  • Save borkdude/1375329 to your computer and use it in GitHub Desktop.

Select an option

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