2021-10-16 01:28:32 +02:00
|
|
|
← [[doom-module-index:][Back to module index]] ↙ [[doom-module-issues:::lang common-lisp][Issues]] ↖ [[doom-module-source:lang/common-lisp][Source]] ± [[doom-suggest-edit:][Suggest edits]] ? [[doom-help-modules:][Help]]
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
#+TITLE: :lang common-lisp
|
|
|
|
#+SUBTITLE: If you've seen one lisp, you've seen them all
|
|
|
|
#+CREATED: June 13, 2018
|
|
|
|
#+SINCE: 21.12.0
|
|
|
|
|
|
|
|
* Description :unfold:
|
|
|
|
This module provides support for [[https://lisp-lang.org/][Common Lisp]] and the [[doom-package:][Sly]] development
|
2021-09-17 11:16:45 -07:00
|
|
|
environment. Common Lisp is not a single language but a specification, with many
|
|
|
|
competing compiler implementations. By default, [[http://www.sbcl.org/][Steel Bank Common Lisp]] (SBCL) is
|
|
|
|
assumed to be installed, but this can be configured.
|
|
|
|
|
|
|
|
Common Lisp benefits from a mature specification and rich standard library.
|
|
|
|
Thanks to its powerful REPL and debugger, it boasts an "interactive programming"
|
|
|
|
style often unseen in other languages. Compiled Common Lisp programs are trusted
|
|
|
|
to run unmodified for a long time.
|
|
|
|
|
|
|
|
** Maintainers
|
2021-10-16 01:28:32 +02:00
|
|
|
/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]]
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Module flags
|
|
|
|
/This module has no flags./
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Packages
|
|
|
|
- [[doom-package:][sly]]
|
|
|
|
- [[doom-package:][sly-macrostep]]
|
|
|
|
- [[doom-package:][sly-repl-ansi-color]]
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
This module requires [[http://www.sbcl.org/][SBCL]].
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
|
|
|
🔨 /This module's usage documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
|
|
|
#+end_quote
|
2021-09-17 11:16:45 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
This module does not integrate with [[doom-module:][:tools lsp]]. Sly (and SLIME before it) is
|
2021-09-17 11:16:45 -07:00
|
|
|
considered the defacto development environment for Common Lisp and provides much
|
|
|
|
of what is normally expected of an LSP, plus tight integration with the REPL and
|
|
|
|
Emacs.
|
|
|
|
|
|
|
|
** Sly
|
|
|
|
Using this module is mostly a matter of using Sly. Please consider reading
|
|
|
|
through [[http://joaotavora.github.io/sly/#A-SLY-tour-for-SLIME-users][the Sly Tour]].
|
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
A Sly session will be started when you open a =.lisp= file. Use [[kbd:][<localleader> ']]
|
|
|
|
to switch to the REPL minibuffer.
|
2021-09-17 11:16:45 -07:00
|
|
|
|
|
|
|
** org-mode
|
|
|
|
This module also enables the evaluation of =lisp= source blocks in Org Mode.
|
2021-10-16 01:28:32 +02:00
|
|
|
However, you will need a running Sly session for this to work. ~M-x sly~ starts
|
2021-09-17 11:16:45 -07:00
|
|
|
such a session if you didn't have one open already.
|
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
|
|
|
🔨 /This module's configuration documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
|
|
|
#+end_quote
|
2021-09-17 11:16:45 -07:00
|
|
|
|
|
|
|
If you don't want Sly to use SBCL, you can configure the variable
|
|
|
|
~inferior-lisp-program~ to some other binary on your PATH.
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
|
|
|
#+end_quote
|