spacemacs/layers/+lang/d
Miciah Masters e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
..
img Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
config.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Avoid non-idempotent use of push in init code 2018-06-05 22:17:13 -04:00
README.org Fix doc for chinese, transmission, d, command-log and idris layer 2018-01-19 19:41:40 +01:00

D language layer

/TakeV/spacemacs/media/commit/3de1d09a4204ddc65c5c3d9d235a210845e74781/layers/+lang/d/img/dlogo.png

Description

This simple layer adds support for the D language to Spacemacs.

Features:

  • Syntax highlighting
  • Auto completion via company
  • Syntax checking via flycheck

Install

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.

To enable auto completion, you need to install DCD. After successfully building DCD, you need to copy the binary dcd-server and dcd-client in your path.

It is also recommended to install DUB a D language package manager.

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
SPC m h h Display documentation of symbol under point