New answers tagged eval
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
Related Tags
eval × 50backquote × 5
emacsclient × 4
variables × 4
elisp-macros × 4
quote × 4
eval-expression × 4
functions × 3
symbols × 3
print × 3
org-mode × 2
key-bindings × 2
buffers × 2
colors × 2
start-up × 2
list × 2
byte-compilation × 2
command-line-arguments × 2
load × 2
read × 2
init-file × 1
org-babel × 1
elisp × 1
microsoft-windows × 1
hooks × 1