2015-12-02 14:23:39 +00:00
#+TITLE : D language 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/dlogo.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-19 15:27:23 +00:00
- [[#features ][Features: ]]
2017-05-22 14:16:12 +00:00
- [[#install ][Install ]]
- [[#key-bindings ][Key bindings ]]
2015-06-10 16:44:30 +00:00
* Description
2018-01-19 15:27:23 +00:00
This simple layer adds support for the [[http://dlang.org/ ][D language ]] to Spacemacs.
** Features:
- Syntax highlighting
- Auto completion via =company=
- Syntax checking via =flycheck=
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 =d= to the existing =dotspacemacs-configuration-layers= list in this
file.
2016-09-12 06:08:13 +00:00
2018-01-19 15:27:23 +00:00
To enable auto completion, you need to [[https://github.com/Hackerpilot/DCD#setup ][install ]] [[https://github.com/Hackerpilot/DCD ][DCD ]]. After successfully building DCD,
you need to copy the binary =dcd-server= and =dcd-client= in your path.
2016-09-12 06:08:13 +00:00
2018-01-19 15:27:23 +00:00
It is also recommended to install [[https://github.com/dlang/dub ][DUB ]] a =D language= package manager.
2016-10-27 22:46:14 +00:00
2016-09-12 06:08:13 +00:00
* Key bindings
2018-12-05 03:03:03 +00:00
| Key binding | Description |
2016-09-12 06:08:13 +00:00
|-------------+-------------------------------------------------------|
| ~SPC m g g~ | Go to definition |
| ~SPC m g b~ | Jump back (after go to definition with above command) |
2018-01-19 15:27:23 +00:00
| ~SPC m g r~ | Find references to all symbol at point |
| ~SPC m h h~ | Display documentation of symbol under point |
2016-09-12 06:08:13 +00:00
|-------------+-------------------------------------------------------|