Commit graph

12 commits

Author SHA1 Message Date
syl20bnr f45ce1a88e syntax-checking: rename function add-flycheck-hook to enable-flycheck
spacemacs/add-flycheck-hook was not really hooking anything, change the name
to better reflect what it does.
Also changed the push for a add-to-list to avoid duplicates.
2017-03-19 12:40:36 -04:00
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
Eivind Fonn 48dc7776ae Some nim layer fixes
- Define nimscript backend list
- Use jump handlers API
2016-10-17 14:00:15 +02:00
Tu Do 763d6f5555 Improve Nim layer
- Add support for better completion using Nim's IDE tool, `nimsuggest`.
- Add key binding for goto definition and jump back.
- Eldoc integration (with the nimsuggest-mode)
- Update documentation.
2016-10-17 13:58:12 +02:00
Eivind Fonn e9f8377b92 Tweak flycheck loading process 2016-01-31 23:04:48 -05:00
Eivind Fonn ac0ba50154 Make flycheck/flyspell hooks more explicit 2015-12-11 02:08:55 -05:00
Robert O'Connor a842d5bdf8 company-nim is now bundled with nim-mode
Fixes #3935
2015-11-24 15:47:07 +01:00
justbur 8ed77160bb layers: Fix missing owner for some layers
This is a partial fix for #3493. I didn't touch layers where I can't
tell what the intention was for how it should work.
2015-11-23 20:22:38 +01:00
justbur 9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
Max Gonzih 7c8cc42480 Remove extension for flycheck-nim, use melpa package instead. 2015-10-21 20:34:19 +02:00
syl20bnr 6edfdb550e nim: move local packages to local folder and simplify config 2015-10-10 23:19:23 -04:00
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00
Renamed from layers/!lang/nim/packages.el (Browse further)