Skip to content

Instantly share code, notes, and snippets.

@condotti
Created February 26, 2011 09:41
Show Gist options
  • Save condotti/845081 to your computer and use it in GitHub Desktop.
Save condotti/845081 to your computer and use it in GitHub Desktop.
An advice for paredit in lisp-interaction-mode.
(defadvice paredit-newline (around eval-print-last-sexp activate)
(if (eq major-mode 'lisp-interaction-mode)
(eval-print-last-sexp)
(paredit-newline)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment