2022-03-28 15:03:21 +02:00
|
|
|
#+title: :lang racket
|
|
|
|
#+subtitle: The DSL for DSLs
|
|
|
|
#+created: July 29, 2018
|
|
|
|
#+since: 2.0.9 (#772)
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
|
|
|
This module adds support for the [[https://www.racket-lang.org/][Racket programming language]] to Doom Emacs.
|
2020-02-22 18:16:25 -06:00
|
|
|
|
|
|
|
** Maintainers
|
2021-10-16 01:28:32 +02:00
|
|
|
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
2020-02-22 18:16:25 -06:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Module flags
|
|
|
|
- +lsp ::
|
2022-09-26 02:19:42 +08:00
|
|
|
Enable support for ~racket-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
2021-10-16 01:28:32 +02:00
|
|
|
(supports [[https://github.com/jeapostrophe/racket-langserver][racket-langserver]]).
|
|
|
|
- +xp ::
|
|
|
|
Enable the explore mode (~racket-xp-mode~), which "analyzes expanded code to
|
|
|
|
explain and explore."
|
2020-02-22 18:16:25 -06:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Packages
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[doom-package:racket-mode]]
|
2020-02-22 18:16:25 -06:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
2020-02-22 18:16:25 -06: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./
|
|
|
|
|
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
|
|
|
|
|
|
|
This module requires ~racket~. Install it from the [[https://download.racket-lang.org/][racket website]] or through
|
|
|
|
your OS package manger.
|
2021-05-11 07:59:39 -07:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Arch Linux
|
|
|
|
#+begin_src sh
|
2021-05-11 07:59:39 -07:00
|
|
|
pacman -S racket
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
Or, for fewer dependencies:
|
2021-10-16 01:28:32 +02:00
|
|
|
#+begin_src sh
|
2021-05-11 07:59:39 -07:00
|
|
|
pacman -S racket-minimal
|
|
|
|
#+end_src
|
|
|
|
|
2022-11-19 14:47:07 +00:00
|
|
|
** Formatter
|
|
|
|
|
|
|
|
Formatting is handled using the [[doom-module::editor format]] module via [[https://docs.racket-lang.org/fmt/][fmt]].
|
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no usage documentation yet. [[doom-contrib-module:][Write some?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
/This module's configuration documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|
2020-02-22 18:16:25 -06:00
|
|
|
|
|
|
|
** racket-smart-open-bracket-mode
|
2021-10-16 01:28:32 +02:00
|
|
|
~racket-smart-open-bracket-mode~ gets turned off automatically if you use
|
|
|
|
~parinfer~, ~lispy~. If you wish to enable it:
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; in $DOOMDIR/config.el
|
2020-02-22 18:16:25 -06:00
|
|
|
(after! racket-mode
|
2021-10-16 01:28:32 +02:00
|
|
|
(add-hook 'racket-mode-hook #'racket-smart-open-bracket-mode))
|
|
|
|
#+end_src
|
|
|
|
|
2020-11-14 15:59:58 -07:00
|
|
|
** Unicode Input
|
2021-10-16 01:28:32 +02:00
|
|
|
The optional ~racket-unicode~ input method lets you type unicode characters such
|
|
|
|
as λ or π. To enable unicode input for a single buffer, run
|
|
|
|
~racket-unicode-input-method-enable~. To enable unicode input by default on all
|
|
|
|
racket buffers:
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; in $DOOMDIR/config.el
|
2020-11-14 15:59:58 -07:00
|
|
|
(add-hook 'racket-mode-hook #'racket-unicode-input-method-enable)
|
|
|
|
(add-hook 'racket-repl-mode-hook #'racket-unicode-input-method-enable)
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
Once enabled, unicode input can be toggled by pressing C-\ or running
|
|
|
|
~toggle-input-method~.
|
|
|
|
|
|
|
|
* 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?]]
|
2020-02-22 18:16:25 -06:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
2021-10-16 01:28:32 +02:00
|
|
|
#+end_quote
|