How to run an emacs lisp program in the *scratch* buffer
- start emacs
- in the scratch buffer, type:(+ 2 2)
- pressCTRL-X CTRL-E
- you should get4in the echo area at the bottom of the screen
See also the Run a Program section in An Introduction to Emacs Lisp Programming
Related posts
- Magit in Spacemacs (evil-magit) notes — posted 2018-11-02
- Switching from Emacs to Vim (actually Spacemacs) — posted 2015-12-31
- Colorized, interactive "git blame" in Emacs: vc-annotate — posted 2011-05-28
- My Emacs Python environment — posted 2010-05-10
- Emacs espresso-mode for jQuery — posted 2010-03-10
- Notes on C++ development with Emacs on Ubuntu Linux — posted 2009-07-08