Commit graph

32 commits

Author SHA1 Message Date
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
Rob Merrell
850b5e9723 documented the 'go test' keyboard command 2015-04-04 23:38:36 -04:00
Josh Chase
8fedbe0635 Fix for go-oracle. 2015-04-04 00:43:40 -04:00
syl20bnr
2f29b3edbe go layer: rename function to spacemacs/go-run-package-tests 2015-04-04 00:34:03 -04:00
Rob Merrell
baaf03e005 Add go/run-package-tests command bound to 'mtp' 2015-04-04 00:30:44 -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
Cong Nguyen
e7ec767fa8 go layer: use new company-mode layer init
Fix #913
2015-03-23 22:12:04 -04:00
syl20bnr
c5b1068657 Block go-oracle configuration if go-oracle not found 2015-03-12 00:36:09 -04:00
syl20bnr
ca17484f97 Change :if condition in company-go init function 2015-03-12 00:26:12 -04:00
artemave
fac442c471 Rm extra load of 'oracle.el'
fixes typo from merging #603
2015-02-27 22:54:50 -05:00
Cong Nguyen
894c223c33 fix company-go loading before go-mode 2015-02-19 07:08:44 -05:00
Josh Chase
ecd0fc0c52 Fix bug in the go/init-go-oracle function 2015-02-19 07:08:31 -05:00
syl20bnr
96723eb7eb Update wrong code snippets in READMEs 2015-02-17 22:36:12 -05:00
artemave
6a14d0ab8d Support GOPATH with multiple entries.
Fixes go-oracle not being loaded in case $GOPATH has more than one entry.

Conflicts:
	contrib/lang/go/extensions.el
2015-02-15 22:40:02 -05:00
syl20bnr
79980af6f8 Skip go-oracle configuration if GOPATH not found 2015-02-14 22:44:06 -05:00
syl20bnr
418870de12 Move go-rename in extensions directory 2015-02-07 23:26:27 -05:00
Josh Chase
793d4a1eee Added rename support to contrib/lang/go 2015-02-07 23:19:22 -05:00
CongNT3
af3471c37b add go-autocomplete and company-go packages 2015-01-25 23:47:37 -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
CongNT3
b632e02b9e Add go-eldoc, go-autocomplete and go-oracle 2015-01-12 00:01:40 -05:00
syl20bnr
c66e074ba5 Change go logo to the one of the landing page of the official site
with colors :-)
2015-01-09 23:46:27 -05:00
syl20bnr
4cc9bc4a3c Explicitly add flycheck to the go layer 2015-01-09 23:09:16 -05:00
Ryan Phillips
1344180b45 Add flycheck-mode to go layer 2015-01-09 23:06:05 -05:00
Ryan Phillips
7528363350 initial pass at a golang mode 2015-01-09 23:05:35 -05:00