New answers tagged

3 votes
Accepted

Copy the result of C-x C-e instead of inserting it into buffer

Try this: (defun my-eval-last-sexp () (interactive) (elisp--eval-last-sexp nil) (let (result) (with-current-buffer (get-buffer " *Echo Area 0*") (goto-char (point-min)) ...
  • 73.5k

Top 50 recent answers are included