Commit graph

27 commits

Author SHA1 Message Date
Tristan Hume
ad86ab8fb1 Add a helper for simple company initialization.
Adds the spacemacs|init-layer-company helper to set up company
completion for a language layer and replaces existing simple company
initializations. More complex initializations should use the new
architecture directly and remain untouched by this commit.
2015-04-07 15:21:13 -04:00
syl20bnr
57fcb93799 Rename *-declarep functions to *-usedp functions
Makes more sense from a user view point.
2015-04-03 19:13:52 -04:00
syl20bnr
318bd23dc4 Add pre and post init functions support to configuration-layers
Now in addition to the <layer>/init-<pkg> function there are
- <layer>/pre-init-<pkg> (executed before <layer>/init-<pkg>)
- <layer>/post-init-<pkg> (executed after <layer>/init-<pkg>)

The init function is mandatory, if it is not present then the
package is ignored and not installed.

This mechanism allows soft (implicit) cross layers dependencies
between packages (see company for more info).

It is now possible to remove flycheck from spacemacs layer and
move it to its own syntax-checking layer.
2015-04-03 17:12:56 -04:00
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
syl20bnr
46248b1e73 New local company backends 2015-03-31 22:24:01 -04:00
syl20bnr
0fa0409523 Restore reset of local company-backends and add with-yas param 2015-03-30 00:48:41 -04:00
Tristan Hume
cb43a91a15 Add company backend add macro and use it everywhere 2015-03-30 00:01:33 -04:00
Diego Berrocal
78f8c6aae0 Change condition for company-mode detection
changed configuration-layer/package-declaredp for
configuration-layer/layer-declaredp in company-mode
2015-03-29 23:49:37 -04:00
syl20bnr
b1adef0626 Heavy refactoring of company-mode layer
- Enable lazy-loading of company.
- The company layer is now agnostic of any packages which use company
- company-backends is now buffer local and contains only the backends
which are relevant for the current modes
- New macro `spacemacs|reset-local-company-backends`
2015-03-22 02:23:12 -04:00
syl20bnr
96723eb7eb Update wrong code snippets in READMEs 2015-02-17 22:36:12 -05:00
syl20bnr
22930c3d33 Change all SPC m g bindings to SPC m g g according to conventions 2015-01-20 22:32:13 -05:00
syl20bnr
ceefe88b75 Update CONTRIBUTE.md and add file headers
Also add default file header to layer templates.
2015-01-13 23:12:56 -05:00
syl20bnr
fd0e9abbe7 Move layer images into img directories 2014-12-24 01:03:49 -05:00
syl20bnr
f770404255 Dispatch flycheck hooks in relevant layers 2014-12-22 22:51:44 -05:00
syl20bnr
0051aa73c4 Update conventions for help/doc key bindings
`m d` goes under help commands so it is now `m h d`
2014-12-21 22:52:57 -05:00
syl20bnr
be338e9ee4 Refactoring of some javascript layer package initialisation 2014-12-18 21:39:41 -05:00
Andrew Oppenlander
f2a406abe6 Fixed tern-auto-complete to load correctly 2014-12-18 21:30:19 -05:00
syl20bnr
a3bf7e50d5 Add comment for js2-imenu-extra-mode activation 2014-12-17 18:54:58 -05:00
Daniel Wu
4402f05405 enabled js2-imenu-extra-mode in javascript mode 2014-12-17 18:52:03 -05:00
syl20bnr
19a87326f1 Move CoffeeScript package to JavaScript layer 2014-12-13 22:49:24 -05:00
syl20bnr
4add1b7a62 Remove absolute links in READMEs 2014-12-11 19:55:44 -05:00
syl20bnr
68fbb286de Fix defvar instead of setq in readme 2014-12-09 23:50:48 -05:00
sbenner
e295b6a3f5 Temporarily comment the command prefixes for JS layer 2014-12-08 13:00:30 -05:00
syl20bnr
fe8e8c09fd Standardize some key bindings for javascript layer 2014-12-08 00:39:19 -05:00
syl20bnr
fef7372be2 Update javascript layer README 2014-12-08 00:33:25 -05:00
syl20bnr
b479c83b91 Reformat javascript layer README 2014-12-08 00:20:21 -05:00
Andrew Oppenlander
e303fce60b Add Javacript layer
- move JavaScript/js2-mode into a contrib layer
- add js2-refactor
- change keybindings to be more spacemacsy
- add a function to define a command prefix for a specific mode
2014-12-07 23:55:32 -05:00