This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/ycmd
syl20bnr 769d54da02 New layer auto-completion
Move company and auto-complete to a common layer.
They are not enabled globally anymore, each mode using them
must explicitly declare a hook.
Only one frontend is supported for a given mode, we have to
choose the best between the two.
Only one key binding to toggle auto-completion on `SPC t a` no
matter if it is company or auto-complete. The lighter in the
mode-line is Ⓐ for both frontends.
2015-04-03 00:28:13 -04:00
..
global_conf.py Add a emacs-ycmd contrib layer. 2015-01-11 23:15:13 -05:00
packages.el New layer auto-completion 2015-04-03 00:28:13 -04:00
README.md Refactor ycmd layer for lazy loading 2015-03-15 21:43:31 -04:00

YCMD contribution layer for Spacemacs

Table of Contents

Description

This layer adds emacs-ycmd support.

Install

Layer

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(ycmd))

YCMD

In order to use this layer you must have a local ycmd installation and must set the ycmd-server-command variable to reflect the path to that installation. See the emacs-ycmd readme for more instructions on this.

Company

This package also requires the company-mode layer in order to get actual completion rather than just flychecking and key bindings.

Configuration

By default this layer only activates ycmd for c++-mode.

If you want ycmd suppoert in other modes you might just want to add it for specific languages like: elisp (add-hook 'c++-mode-hook 'ycmd-mode)

Key Bindings

Adds SPC m g g go to definition binding to c++-mode as well as SPC m g G for the more imprecise but faster version.