Skip to content

Instantly share code, notes, and snippets.

@martinbalfanz
Created November 9, 2011 19:47
Show Gist options
  • Save martinbalfanz/1352722 to your computer and use it in GitHub Desktop.
Save martinbalfanz/1352722 to your computer and use it in GitHub Desktop.
eval and execute current defun
;; e.g. bind to C-c C-e in emacs-lisp-mode
(defun mb-eval-and-execute ()
"Evaluate and execute current defun."
(interactive)
(funcall (eval-defun-2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment