Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

    

How to run an emacs lisp program in the *scratch* buffer

  • start emacs
  • in the scratch buffer, type: (+ 2 2)
  • press CTRL-X CTRL-E
  • you should get 4 in the echo area at the bottom of the screen
See also the Run a Program section in An Introduction to Emacs Lisp Programming

Post a comment

Required
Required, but not displayed
Optional

Format using Markdown. (No HTML.)
  • Code blocks: prefix each line by at least 4 spaces or 1 tab (and a blank line before and after)
  • Code span: surround with backticks
  • Blockquotes: prefix lines to be quoted with >
  • Links: <URL>
  • Links w/ description: [description](URL)
Created with Django | Hosted by Linode