Org Mode support for Common Lisp
According to John Foderaro, Lisp is a programmable programming language.
Requirements and Setup
By default Common Lisp source code blocks are evaluated by Babel with the Superior Lisp Interaction Mode for Emacs, or SLIME. SLIME supports many Common Lisp implementations and is compatible with GNU Emacs version 21 and later and with XEmacs version 21.
Optionally, Sylvester the Cat's Common Lisp IDE, or SLY can be used
for evaluation. Specify SLY by setting
You'll need a working installation one of the many Common Lisp
implementations supported by SLIME or SLY, and SLIME or SLY. Consult the
installation instructions for the Common Lisp implementation of your
choice. SLIME installation requires just a few lines in
To configure Common Lisp source code blocks in Org mode, add the
appropriate dotted pair to
(org-babel-do-load-languages 'org-babel-load-languages '((lisp . t)))
Org Mode Features for Common Lisp Source Code Blocks
There are no language-specific default values for header arguments to Common Lisp source code blocks.
A single language-specific header argument is defined for Common Lisp source code blocks:
- a string that names a Common Lisp package within which
to execute the source code block. The default value is
:any, which will execute the source code block in the current package.
By their nature, Common Lisp interpreters always run "sessions."
All result types are supported.
The SLIME session must be running when the Common Lisp source code block is executed.
Examples of Use
M-x slime <RET>.
#+name: hello-world #+header: :var message="Hello World!" #+begin_src lisp (princ message) #+end_src
Execute the source code block with
C-c C-c to yield this result: