spacemacs/layers/+lang
syl20bnr 74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
..
agda Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
asciidoc Fix asciidoc demote function name 2016-08-22 10:22:20 +02:00
asm Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
autohotkey ahk: move SPC m h r to SPC m h H 2016-07-05 00:23:16 -04:00
bibtex Fix the dependencies missing in bibtex layer. 2016-05-27 00:32:05 -04:00
c-c++ Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
clojure Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
common-lisp Common Lisp: enable fuzzy matching with comapny 2016-10-17 19:51:06 +02:00
csharp Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
csv Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
d Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
elixir Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
elm Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
emacs-lisp Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
erlang Define missing jumper handler variables for helm-gtags 2016-09-05 02:38:13 -04:00
ess ESS: Add R to org babel languages. 2016-07-05 00:23:16 -04:00
extra-langs Make matlab quasi-derived from prog-mode 2016-04-12 22:48:34 -04:00
faust Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
fsharp Fix (void-variable spacemacs-jump-handlers-....) 2016-09-04 22:31:47 -04:00
go Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
graphviz graphviz: use a use-package hook for org babel config 2016-04-29 22:47:03 -04:00
haskell Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
html Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
idris Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
ipython-notebook ipython: Update matplotlibrc 2016-10-23 19:44:35 +02:00
java Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
javascript Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
latex Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
lua add missing header in lua/packages.el file 2016-12-02 20:42:11 +02:00
markdown Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
nim Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
ocaml Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
octave Define missing jumper handler variables for helm-gtags 2016-09-05 02:38:13 -04:00
php Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
plantuml Updated the plantuml plugin to use plantuml-mode instead of the now deprecated puml-mode 2016-10-17 08:11:11 +03:00
purescript Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
python Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
racket Fix (void-variable spacemacs-jump-handlers-....) 2016-09-04 22:31:47 -04:00
ruby Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
rust Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
scala Remove sbt-hydra rename wrapper 2016-12-12 08:56:06 -03:00
scheme Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
shaders Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
shell-scripts Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
sml SML: Improve indentation. 2016-08-18 21:05:51 +02:00
sql Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
swift Format documenation files with doc-fmt tool 2016-04-12 23:31:38 -04:00
typescript Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
vimscript Define missing jumper handler variables for helm-gtags 2016-09-05 02:38:13 -04:00
windows-scripts Define missing jumper handler variables for helm-gtags 2016-09-05 02:38:13 -04:00
yaml Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00