spacemacs/core
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
..
aprilfool Replace some emacs-user-directory vars and update documentation 2016-06-23 00:25:04 -04:00
banners center ascii banners in home buffers 2016-07-05 19:50:57 +02:00
info Thank d12frosted too 2016-11-03 15:23:37 +01:00
libs
templates Use "non-nil" in .spacemacs.template 2016-11-20 18:55:12 -05:00
tools/spacefmt Removed deprecated insert-string and replace by insert 2016-11-11 15:23:49 +02:00
core-command-line.el core: refactor layer system 2016-07-28 23:26:54 -04:00
core-configuration-layer.el core: cleanup layers discovery 2016-12-25 15:14:20 -05:00
core-custom-settings.el core: fix "select deleted buffer" 2016-12-18 02:07:45 -05:00
core-debug.el core: move some functions to their correct source file 2016-12-18 12:05:10 -05:00
core-display-init.el Fix init error for emacs in terminal mode 2016-06-13 00:25:39 -04:00
core-documentation.el Add newsletter 01 2016-10-03 00:23:15 -04:00
core-dotspacemacs.el core: move some functions to their correct source file 2016-12-18 12:05:10 -05:00
core-emacs-backports.el 💣 Drop support for Emacs 24.3 2016-06-20 22:05:56 -04:00
core-fonts-support.el
core-funcs.el Add keybinding for spacemacs/alternate-window 2016-12-27 09:50:10 +02:00
core-jump.el core: add support for conventional SPC m g G to jump-to-definition 2016-11-22 09:20:03 -05:00
core-keybindings.el core: scope minor-mode specific key bindigns under major-mode leader 2016-12-16 08:57:45 -05:00
core-load-paths.el Add newsletter 01 2016-10-03 00:23:15 -04:00
core-micro-state.el Cleanup pass on file spacemacs-base/funcs.el 2016-10-09 13:14:41 -04:00
core-release-management.el Fix a typo in the version switching message 2016-09-13 13:21:52 +03:00
core-spacemacs-buffer.el home-buffer: fix error on footer insertion when window is narrow 2016-12-22 16:31:13 +02:00
core-spacemacs.el Refactor and simplify company backends declaration 2017-01-02 00:39:04 -05:00
core-themes-support.el Added new base16 themes 2016-12-24 21:00:30 +02:00
core-toggle.el Toggles: print message only in interactive usage 2016-06-26 13:25:14 -04:00
core-transient-state.el
core-use-package-ext.el fix spacemacs|use-package-add-hook usage docstring 2016-07-25 18:04:05 +03:00