In emacs can you evaluate an elisp expression and replace it with the result?

Posted by justinhj on Stack Overflow See other posts from Stack Overflow or by justinhj
Published on 2010-06-14T06:29:42Z Indexed on 2010/06/14 6:32 UTC
Read the original article Hit count: 211

Filed under:
|

For example if I have the text:

Sum of items is (+ 1 2 3)

I want to move to the end of the line, evaluate the expression and replace it with the result, so that it reads:

Sum of items is 6

© Stack Overflow or respective owner

Related posts about emacs

Related posts about emacs-lisp