Commit graph

119 commits

Author SHA1 Message Date
Josh Greenwood
b8d5555340
fixes typo. s/with/wish 2018-10-16 09:20:16 +03:00
JAremko
cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
Andriy Senyshyn
24d5607b7b Update gocode repo
nsf/gocode is not maintained anymore. change to https://github.com/mdempsky/gocode
2018-08-28 21:59:29 +01:00
Lupco Kotev
25be8ecb62 Update documentation to include golangci-lint 2018-08-20 23:03:45 +01:00
Lupco Kotev
1d49cd7ed8 Add golangci-lint support 2018-08-20 23:03:45 +01:00
Ljupcho Kotev
107833af16 Remove unnecessary company-go function 2018-08-16 12:01:38 +01:00
Ljupcho Kotev
81865e1ea2 Change backend name from default to go-mode 2018-08-16 00:39:17 +03:00
Lupco Kotev
bb3e3b2103 Add lsp support for go 2018-08-16 00:39:17 +03:00
lawr
591fe78eec go-layer: supoort set-tab-width equal nil to work with editorconfig 2018-08-10 00:36:46 +03:00
Robby O'Connor
c3e402332f go layer: fix cosmetic issue 2018-08-02 00:20:24 +01:00
Jon Erik D Suero
ff555d80b4 Add key binding to run gofmt manually 2018-08-01 17:54:27 -04:00
Jon Erik D Suero
166f6768ae go: add toggle for gofmt before save and turn it off by default 2018-08-01 17:52:03 -04:00
JAremko
6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
fiveNinePlusR
75f1d915a8 [CORE] synchronize the environment variables from the default shell 2018-06-14 20:12:26 -04:00
Josh Santos
7944ed2634 Fix environment variable setting for go and rust layers 2018-06-09 01:22:56 -04:00
syl20bnr
b04cce06b2 go: defer loading of various packages 2018-06-09 01:11:41 -04:00
syl20bnr
9fc1883b4b go: fix bad quoting of go-packages-function 2018-06-09 01:10:03 -04:00
syl20bnr
aedceddd92 go: cleanup layer sorting stuff and using idiomatic constructs 2018-06-09 01:09:11 -04:00
Cosmin Cojocar
d47f9267e9 go: add support for go-impl in refactoring menu 2018-06-09 01:04:23 -04:00
syl20bnr
f12b849993 go: sort packages.el and update README 2018-06-09 00:58:50 -04:00
Cosmin Cojocar
80dbae3825 go: add option in refactoring to fill a structure with default values 2018-06-09 00:51:33 -04:00
syl20bnr
ae53d9612e go: update feature section with gopkgs 2018-06-09 00:49:07 -04:00
syl20bnr
0e0d5088b9 go: remove unused function load-gopath-file 2018-06-09 00:45:48 -04:00
syl20bnr
7951d763e3 go: reformat spacemacs/go-packages-gopkgs
Use setq instead of customize
Put spacemacs//go-set-tab-width in funcs.el
2018-06-09 00:43:52 -04:00
Cosmin Cojocar
938155c50a Configure the go-packages-functions to use the gopkgs tool
This is a much faster option than the current native function.
2018-06-09 00:39:08 -04:00
syl20bnr
0fd13aef2b go: change test generation key bindings according to conventions 2018-06-09 00:36:32 -04:00
Cosmin Cojocar
359960ae27 Add support to generate go tests with go-gen-test 2018-06-09 00:36:32 -04:00
Miciah Masters
e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
syl20bnr
ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr
29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
smile13241324
0961850391 Fix doc for octave, sql and go layers 2018-02-17 17:30:27 +02:00
syl20bnr
46c5dfa4a7 cl-loop instead of loop 2018-01-06 21:38:13 -05:00
syl20bnr
326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
syl20bnr
0bae94fe4d go: sort key bindings in README.org 2017-12-17 22:12:44 -05:00
brantou
d9065de1cb Add go-tag to go-layer 2017-12-17 22:10:24 -05:00
Robbert van der Helm
c61ae1a1c1 Add ivy support to the gtags layer
It would be much better to have a single function for each layer that
initializes ggtags, helm-gtags and counsel-gtags for a mode.
2017-12-17 22:03:01 -05:00
Josh Santos
bfde1a44dc Convert remote file name to local name, stripping trampy stuff
Turn into conditional so local files still work
2017-08-27 22:21:31 -04:00
JAremko
06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
Andy Lindeman
11180699e6
Adds GOROOT to list of variables copied from shell environment
From <https://golang.org/doc/install> "Installing to a custom location"

> The Go binary distributions assume they will be installed in /usr/local/go
> (or c:\Go under Windows), but it is possible to install the Go tools to a
> different location. In this case you must set the GOROOT environment variable
> to point to the directory in which it was installed.
2017-07-29 22:30:10 +03:00
Eivind Fonn
f4b53d2a4f Rename :depends to :requires 2017-07-03 09:54:53 +02:00
syl20bnr
e2e532bb49 core: change <function>p to <function>-p suffixes for consistency
Also defined aliases for backward compatibility with `usedp` functions.
2017-07-02 10:09:39 -04:00
Eivind Fonn
08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
zer09
c504496b12 Update README.org 2017-05-28 15:03:33 +02:00
Eivind Fonn
e4185e4c61 Some refactoring of go layer 2017-05-25 13:20:36 +02:00
Eivind Fonn
adca985dd9 Update go layer documentation 2017-05-25 13:19:50 +02:00
Eivind Fonn
b7370f454e Add godoctor
Thanks to TinySong
2017-05-25 13:19:32 +02:00
Ian Clark
249c3b87b0 Configurable extra arguments to go test
ADD:
  - layers/+lang/go/config.el Added new variable `go-use-test-args` to allow
    specifying additional arguments being passed to `go test.

CHANGE:
  - layers/+lang/go/packages.el Updated `go-run-tests` to automatically concat
    the new variable `go-use-test-args` to args passed to `go test`.
2017-05-24 11:52:10 +02:00
JAremko
6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
JAremko
f805d0ebd9 Fix spacefmt test on deleted files
Also fix some links
[ci skip]
2017-04-28 23:29:43 -04:00
firemiles
b8c17cf3c5 docs: Install goimports from new repository. 2017-04-28 22:50:12 -04:00