Org Mode support for Common Lisp
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 =.emacs=, as does SLY.
To configure Common Lisp source code blocks in Org mode, add the appropriate dotted pair to =org-babel-load-languages=:
(org-babel-do-load-languages 'org-babel-load-languages '((lisp . t)))
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:
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.
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: