Commit graph

9285 commits

Author SHA1 Message Date
Ljupcho Kotev 107833af16 Remove unnecessary company-go function 2018-08-16 12:01:38 +01:00
Ismael f1066ec66e Fixes React imports when using web beautify. 2018-08-16 00:55:32 +03: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
smile13241324 6b0e696208 doc: add remark for necessary GitHub login to report issues 2018-08-15 22:25:03 +01:00
jpathy 13d0212c18 Associate nix-mode with .nix files 2018-08-16 00:19:11 +03:00
smile13241324 252c94a1ce doc: revise docs for auto-complete and syntax-checking layers
Syntax-checking and auto-complete layers should more
directly communicate that their function depends on
the installation of individual language layers to avoid
misunderstandings with new users who only install
syntax-checking or auto-complete and install the packages
manually.
2018-08-15 22:15:45 +01:00
smile13241324 c0afbd0ee5 search-engine: add ecosia and make each engine use https 2018-08-15 20:22:42 +02:00
Codruț Constantin Gușoi 6a724e416d Fixes formatting on ruby readme 2018-08-11 13:13:22 +03:00
Brandon Conway 6302748f99 Add seeing is believing 2018-08-11 12:53:50 +03:00
Wieland Hoffmann b18672d9d1 core: Add support for lazy installation of the systemd layer
The list of supported file extensions is taken from
401d71c2dd/systemd.el (L391-L392).
2018-08-11 11:56:29 +03:00
Adam Beckmeyer 42f9ad4290 Add dedicated julia layer 2018-08-11 09:16:15 +01:00
Adam Beckmeyer feee0844c5 Remove julia from major-modes layer 2018-08-11 09:16:15 +01:00
Adam Beckmeyer 36161b4d47 Remove julia from ess layer 2018-08-11 09:16:15 +01:00
gdkrmr 4af499588a fix java layer 2018-08-09 23:02:16 +01:00
gdkrmr 875d4a6afc remove explicit prog-mode-hooks for ess 2018-08-09 23:02:16 +01:00
gdkrmr 8b858abc6a fix for ess issue emacs-ess/ESS#589 2018-08-09 23:02:16 +01:00
gdkrmr bf23cb17dd keybindings for the repl 2018-08-09 23:02:16 +01:00
gdkrmr 3186da89bb add xref integration for ess 2018-08-09 23:02:16 +01:00
syl20bnr 3f47bf8e11 Move major specific error key bindings to SPC m E prefix
Also add a convention for it.
2018-08-09 23:02:16 +01:00
André Peric Tavares 775d584665 Merge file variables in a single line 2018-08-09 22:53:11 +01:00
André Peric Tavares e329582f54 Use lexical binding in dotfile template
Lexical binding is easier to reason about and it's generally recommended for new code. It's faster too.

Dynamic scoping can lead to tricky situations. Example: https://emacs.stackexchange.com/questions/10394/scope-in-lambda

This probably won't break existing code. Most people don't even know the default is dynamic binding.
2018-08-09 22:53:11 +01:00
Kalle Lindqvist 0a81d5f4ad html: remove emmet TAB key binding for Emacs style
Allow to use TAB for indenting as usual.
2018-08-09 22:50:03 +01:00
Langston Barrett 178b0caeb8 lang/coq: more insertion keybindings 2018-08-09 22:49:01 +01:00
Miciah Masters 6058921a02 layouts: Add free buffers to current layout
This fixes issue #5776.

* layers/+spacemacs/spacemacs-layouts/packages.el
(spacemacs-layouts/init-persp-mode):
Set persp-add-buffer-on-after-change-major-mode to 'free.
2018-08-09 22:43:11 +01:00
EMayej 17d9cbb86a docs(templates): template dir is set to private dir by default
templates directory under spacemacs.d won't be used anymore.
See commit 93dabc0bbc

Also see commit 04685e77ca for previous changes
2018-08-09 22:39:26 +01:00
EMayej ad9064fbf7 docs(templates): variable to disable emacs default templates
See commit 04685e77ca
2018-08-09 22:39:26 +01:00
lawr 591fe78eec go-layer: supoort set-tab-width equal nil to work with editorconfig 2018-08-10 00:36:46 +03:00
br3athein 72d2e7d09d Revert "Disable ac-ispell untill it's restored in melpa"
This reverts commit c290645261.
2018-08-09 22:28:27 +01:00
smile13241324 c20fe9a1ae doc: fix small typo in semantic feature block 2018-08-09 21:57:58 +01:00
Riley Levy 9af8e1564d Fix #1109: Escape argument for shell spacemacs/python-execute-file
Escape the filename before calling python on the filename in the shell in the
function `spacemacs/python-execute-file` by calling `shell-quote-argument`.
2018-08-04 10:51:49 -04:00
Miciah def07cbfa3 Fix smart-closing-parenthesis extra parenthesis
Fix issue #9477: spacemacs/smart-closing-parenthesis sometimes adds an
extra closing parenthesis.

spacemacs/smart-closing-parenthesis may call sp-up-sexp twice: first to
find the position of an existing closing delimiter or the position at which
one would be inserted, and second to insert a delimiter if necessary or
else move point after the existing closing delimiter.

The problem is that each call to sp-up-sexp may insert a delimiter, but
spacemacs/smart-closing-parenthesis is supposed to insert at most one.

The solution is to undo any edit performed by the first call to sp-up-sexp.

* layers/+spacemacs/spacemacs-editing/funcs.el: Undo any edit performed by
the first call to sp-up-sexp.
2018-08-04 10:48:00 -04:00
EMayej 6f9097e6f0 fix(python): index out of bound 2018-08-04 10:32:31 -04:00
Codruț Constantin Gușoi ca04186cfc Reverts js2-mode being forced on jsx files 2018-08-03 09:11:36 +01:00
Miciah 6d8be7b381 python: Initialize inferior-python-mode variables
Fix SPC m c c (spacemacs/python-execute-file) and SPC m c C
(spacemacs/python-execute-file-focus), which were causing
the following errors:

    save-current-buffer: Symbol’s value as variable is void: python-shell--interpreter
    error in process filter: python-shell-comint-end-of-output-p: Wrong type argument: arrayp, nil
    error in process filter: Wrong type argument: arrayp, nil

This commit also fixes issue #9070: spacemacs/python-execute-file-focus
does not change focus.

The problem is that spacemacs/python-execute-file-focus invokes
spacemacs/python-execute-file, spacemacs/python-execute-file invokes
inferior-python-mode, and inferior-python-mode uses the variables
python-shell--interpreter and python-shell--interpreter-args, which
the python package declares but does not initialize.

To resolve this problem, this commit initializes both variables to nil.

* layers/+lang/python/config.el: Initialize python-shell--interpreter and
python-shell--interpreter-args to nil.
2018-08-03 06:53:02 +03:00
Thomas de Beauchêne ce51206ff8 rjsx layer: match .jsx files as well 2018-08-03 01:58:45 +03:00
Thomas de Beauchêne 927a7c4566 javascript layer: open javascript files in js2-mode 2018-08-03 01:58:45 +03:00
Ting Zhou cffd90080b only use javascript-typescript-langserver for javascript, react, typescript
layer, and purge other langservers
2018-08-03 01:37:36 +03:00
David Chen faa33e9524 Add indent toggle to sql-model 2018-08-03 01:03:14 +03:00
Codruț Constantin Gușoi c290645261 Disable ac-ispell untill it's restored in melpa
It seems like the package is missing. We waited a while thinking it will be fixed but
people are starting to get annoyed by this. To be re-enabled once the upstream issue
is resolved.

Refs: https://github.com/melpa/melpa/issues/5657
2018-08-02 11:04:12 +01:00
Dan Girshovich 1ad673fcb7 add guard to check winum is loaded to fix #10446 2018-08-01 23:19:26 -04:00
Miciah Masters 2148562982 Fix loading of Magithub
Fix issue #10760: Magithub sections are not added to Magit.

The problem is that the Spacemacs init function's use-package form for
Magithub specifies both :after magit and :defer t. It should specify only
the former so that Magithub will be loaded when Magit is loaded.

* layers/+source-control/github/packages.el (github/init-magithub): Delete
:defer argument.
2018-08-01 23:03:19 -04:00
Miciah Masters 1ecffa9834 Bind SPC f i to spacemacs/insert-file 2018-08-01 22:46:40 -04:00
Miciah Masters 07964b1a2e Work around ido-mode remapping Spacemacs keys
Add aliases for commands that ido-mode remaps that we want to bind to
Spacemacs keys, and use these aliases in the Spacemacs key bindings so that
these bindings invoke the original commands rather than the ido commands.

See <https://github.com/syl20bnr/spacemacs/issues/10237#issuecomment-359861570>.
2018-08-01 22:46:40 -04:00
Robby O'Connor c3e402332f go layer: fix cosmetic issue 2018-08-02 00:20:24 +01:00
André Peric Tavares 31b3d66e2b Add keybindings for scrolling in epub layer
Add `d` and `u` for scrolling down and up, just like the `pdf` layer.
Those are actually default `nov` keybings.

Invert `up` and `down` `nov` commands

Add keybindings in epub layer docs

Align table
2018-08-02 01:38:05 +03: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
lukasz.czaplinski 87028e77a5 Mark alchemist jump handler as async
Right now `alchemist-goto-definition-at-point` is marked as sync, which
sometimes shows message "No jump handler was able to find this symbol." before jumping to correct definition.

[`alchemist-goto--open-definition`](https://github.com/tonini/alchemist.el/blob/master/alchemist-goto.el#L215) calls alchemist server before jumping to definition, which I think justifies marking this as async.

I have very little experience with either Emacs, or Spacemacs, so let me
know if there's anything I can clarify and/or test before this commit gets
merged :)
2018-08-01 17:44:41 -04:00
Guan Xipeng 0c878ae453 fix: spacemacs/pyenv-executable-find support multi pyenv versions 2018-08-01 17:42:44 -04:00