Created
January 3, 2013 10:34
-
-
Save spacebat/4442501 to your computer and use it in GitHub Desktop.
emacs: eval-expression-to-kill-ring
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-expression-to-kill-ring () | |
"Evaluate an expression interactively and place its result in the kill ring" | |
(interactive) | |
(kill-new (call-interactively 'eval-expression))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment