2015-12-02 14:23:39 +00:00
#+TITLE : F# layer
2015-06-10 16:44:30 +00:00
2019-05-07 08:53:56 +00:00
#+TAGS : general|layer|multi-paradigm|programming
2019-05-05 17:26:40 +00:00
2015-06-10 16:44:30 +00:00
[[file:img/fsharp.png ]]
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description ][Description ]]
2018-01-07 22:26:54 +00:00
- [[#features ][Features: ]]
2017-05-22 14:16:12 +00:00
- [[#install ][Install ]]
2018-12-05 03:03:03 +00:00
- [[#key-bindings ][Key bindings ]]
2017-05-22 14:16:12 +00:00
- [[#repl ][REPL ]]
2015-06-10 16:44:30 +00:00
* Description
2018-01-07 22:26:54 +00:00
This layer adds support for F# language using [[https://github.com/fsharp/fsharpbinding ][fsharpbinding ]] and [[https://github.com/fsharp/fsharpbinding ][fsharp-mode ]].
2015-06-10 16:44:30 +00:00
2018-01-07 22:26:54 +00:00
** Features:
- Syntax highlighting
- Code completion
- Flycheck integration
- REPL
- Compile/Run/Interpreter and info tooltip shortcuts
2016-04-13 03:31:38 +00:00
2015-06-10 16:44:30 +00:00
* Install
2016-01-06 05:21:55 +00:00
To use this configuration layer, add it to your =~/.spacemacs= . You will need to
add =fsharp= to the existing =dotspacemacs-configuration-layers= list in this
file.
2015-06-10 16:44:30 +00:00
2018-12-05 03:03:03 +00:00
* Key bindings
2015-06-10 16:44:30 +00:00
2018-12-05 03:03:03 +00:00
| Key binding | Description |
2015-06-10 16:44:30 +00:00
|-------------+----------------------------|
2015-06-12 01:23:07 +00:00
| ~SPC m c c~ | Build the project |
| ~SPC m g g~ | Go to definition at point |
| ~SPC m h t~ | Show tooltip help at point |
2015-06-10 16:44:30 +00:00
** REPL
2018-12-05 03:03:03 +00:00
| Key binding | Description |
2015-06-10 16:44:30 +00:00
|-------------+------------------------------------------------------------------|
2015-06-12 01:23:07 +00:00
| ~SPC m s b~ | Send buffer to the REPL |
| ~SPC m s B~ | Send buffer to the REPL and switch to the REPL in =insert state= |
| ~SPC m s i~ | Start a REPL |
| ~SPC m s p~ | Send phrase to the REPL |
| ~SPC m s P~ | Send phrase to the REPL and switch to the REPL in =insert state= |
| ~SPC m s r~ | Send region to the REPL |
| ~SPC m s R~ | Send region to the REPL and switch to the REPL in =insert state= |
| ~SPC m s s~ | Show the REPL |