Commit graph

28 commits

Author SHA1 Message Date
syl20bnr efaa595a4a js layer: applied conventions to some tern key bindings
Also update the README
2015-04-21 01:38:58 -04:00
syl20bnr 5f5cf0cbe8 js layer: move js-doc key bindings under SPC m r d 2015-04-21 01:36:02 -04:00
geksilla 3113e5940b Add js-doc package to javascript. 2015-04-21 01:28:05 -04:00
syl20bnr fdd4e944ef Reload dotfile and layer anywhere with SPC f e R
Replace `SPC m c c` and `C-c C-c` in the dotfile

Resolve #1210
2015-04-18 23:40:24 -04:00
syl20bnr a4919b3eda New layer syntax-checking
Move flycheck
2015-04-10 22:23:16 -04:00
syl20bnr 0c6682cbd1 Refactor one more time the auto-completin macros
It is important to define the buffer local backend variables
in a config.el otherwise it is not available in the layer
configuration if the auto-completion layer is removed.
There were also some issues by hiding the explicit
configuration of company inside a macro, for instance
helm-spacemacs is unable to display the company package
configured in a given layer if the auto-completion layer
is removed.
2015-04-09 00:03:51 -04:00
Tristan Hume f04412893e Change company macro name and use push 2015-04-08 12:39:25 -04:00
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 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 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
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
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