spacemacs/layers
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
..
+chat Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+checkers defer flyspell-correct packages loading 2016-12-22 15:35:13 +02:00
+completion Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+distributions Overhaul buffer transient state 2016-12-28 21:56:18 +02:00
+emacs Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+email mu4e: use proper markup on keybindings 2016-11-25 22:44:54 +02:00
+frameworks Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+fun games: add sudoku 2016-11-20 13:40:38 -05:00
+intl [bepo] Fix loading of the ranger correction 2016-09-03 12:04:24 +02:00
+lang Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+misc/nlinum core: special toggle API for minor modes 2016-05-31 22:33:44 -04:00
+os Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+pair-programming/floobits Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
+source-control which-key: Update usage of replacement alists 2016-11-25 12:32:10 +02:00
+spacemacs Speedup: defer loading of helm-purpose. Requires all of purpose. 2016-12-24 21:03:52 +02:00
+tags Fix jump handler macro invocation 2016-09-05 09:45:35 +02:00
+themes Remove themes missing from MELPA 2016-10-31 12:54:00 +01:00
+tools Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
+vim Fix error with which-key--buffer on startup 2016-06-18 00:19:59 -04:00
+web-services Add Confluence layer 2016-11-18 10:02:38 -05:00
auto-layer.el Extend lazy-install for other clojure based modes. 2016-04-04 22:42:51 -04:00
LAYERS.org Update LAYERS.org 2016-10-03 00:23:15 -04:00