2015-12-02 14:23:39 +00:00
#+TITLE : D language layer
2015-06-10 16:44:30 +00:00
[[file:img/dlogo.png ]]
2016-03-31 02:59:55 +00:00
* Table of Contents :TOC_4_gh:noexport:
- [[#description ][Description ]]
- [[#install ][Install ]]
2016-09-12 06:08:13 +00:00
- [[#key-bindings ][Key bindings ]]
2015-06-10 16:44:30 +00:00
* Description
This simple layer adds support for the [[http://dlang.org/ ][D language ]].
It adds =d-mode= as well as integrating it with =auto-completion= and =syntax-checking= .
* 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
To enable smart D completion, you need to install [[https://github.com/Hackerpilot/DCD ][DCD ]]. Here are [[https://github.com/Hackerpilot/DCD#setup][installation
instructions]]. After successfully built DCD, you need to copy the binary
=dcd-server= and =dcd-client= in =bin/= directory to somewhere in your $PATH e.g.
=/usr/local/bin= on Linux.
* Key bindings
| Key Binding | Description |
|-------------+-------------------------------------------------------|
| ~SPC m g g~ | Go to definition |
| ~SPC m g b~ | Jump back (after go to definition with above command) |
| ~SPC m g r~ | find references to all symbol at point |
|-------------+-------------------------------------------------------|