2022-03-28 15:03:21 +02:00
#+title : :lang fsharp
#+subtitle : ML stands for Microsoft's Language
#+created : May 23, 2019
#+since : 21.12.0 (#1327)
2021-10-16 01:28:32 +02:00
* Description :unfold:
This module adds [[https://fsharp.org/ ][F# ]] support to Doom Emacs.
*Includes:*
- Code completion
- eldoc support
- Syntax checking
** Maintainers
/This module has no dedicated maintainers./ [[doom-contrib-maintainer: ][Become a maintainer? ]]
** Module flags
- +lsp ::
2022-09-26 02:19:42 +08:00
Enable LSP support for ~fsharp-mode~ . Requires [[doom-module::tools lsp ]] and a langserver
2021-10-16 01:28:32 +02:00
(supports [[https://github.com/emacs-lsp/lsp-mode/blob/master/clients/lsp-fsharp.el ][lsp-fsharp ]].).
** Packages
2022-09-26 02:19:42 +08:00
- [[doom-package:fsharp-mode ]]
- [[doom-package:lsp-fsharp ]] if [[doom-package:+lsp ]]
2021-10-16 01:28:32 +02:00
2019-05-22 21:58:05 -07:00
** Hacks
2021-10-16 01:28:32 +02:00
/No hacks documented for this module./
** 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. ]]
To get code completion/syntax checking when not using lsp, you will need to
install [[https://www.mono-project.com/ ][mono ]].
2019-05-22 21:58:05 -07:00
** Mono
*** OSX
2021-10-16 01:28:32 +02:00
*Do NOT install mono via brew.* See this [[https://github.com/fsharp/FsAutoComplete/issues/331 ][issue ]].
2019-05-22 21:58:05 -07:00
*** Arch Linux
2021-10-16 01:28:32 +02:00
#+begin_src sh
pacman -S mono
#+end_src
2019-07-05 10:37:16 -07:00
** LSP
2021-01-13 01:13:38 -05:00
The language server is automatically installed by [[https://github.com/emacs-lsp/lsp-mode/blob/master/clients/lsp-fsharp.el ][lsp-fsharp ]].
2019-05-22 21:58:05 -07:00
2022-11-17 17:03:25 +00:00
** Fantomas
Fantomas is used for formatting via [[doom-module::editor format ]] and can be installed as a [[https://dotnet.microsoft.com/en-us/download ][dotnet ]] tool.
#+begin_src shell
dotnet tool install -g fantomas-tool
#+end_src
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 has no configuration documentation yet. [[doom-contrib-module: ][Write some? ]]
2021-10-16 01:28:32 +02:00
#+end_quote
2019-05-22 21:58:05 -07:00
* Troubleshooting
2021-10-16 01:28:32 +02:00
/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
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