Commit graph

2066 commits

Author SHA1 Message Date
emacspace
0fda75c688 documentation formatting: Fri Aug 28 21:26:14 UTC 2020 2020-08-28 23:41:29 +02:00
Lucius Hu
a95593434d fixed typo in haskell/README.org
Fixed the typo and made the url correct
2020-08-28 23:18:42 +02:00
JAremko
18949e85e2 fix code block 2020-08-28 21:25:26 +03:00
Maximilian Wolff
15d93914f5
Fix "lsp is no valid syntax checker" error message
See #13841
2020-08-27 00:04:53 +02:00
wangtianshu
a877cc4197 [bibtex] use `org-ref-completion-library' option to clean code 2020-08-26 22:54:04 +02:00
Daniel Hutzley
ca2f776056 Switch from nabero's ron mode to my own custom ron-mode (hosted on MELPA) 2020-08-26 22:51:08 +02:00
duianto
5e9536e842
[lua] Remove require lsp-clients 2020-08-26 22:46:21 +02:00
Martin Sosic
7f1c72aa43 [layers/+lang/haskell] Removed intero, ghc-mod and company-ghci backends, set dante as default backend. 2020-08-26 22:34:59 +02:00
William Minshew
7e6fdb5641 add emacs-lisp (e)debug keybindings to readme 2020-08-19 23:19:49 +02:00
Martin Šošić
95400ec08e
[layers/+lang/haskell] Updated README with more detail about Dante + misc (#13802)
Updated README with more detail about Dante + misc
2020-08-19 23:11:01 +02:00
Martin Šošić
112fb65833
[layers/+lang/haskell] Make flycheck run hlint checker after dante checker. (#13804)
Make flycheck run hlint checker after dante checker in haskell layer.
2020-08-19 23:08:16 +02:00
fperies
18e35a8607
[layers/+lang/c-c++] Add RTags shortcuts for trees and dead functions (#13838)
* Add RTags shortcuts for trees and dead functions

The change will add 3 shortcuts for dependency, references trees and for finding dead functions.

* Additions of some key bindings
2020-08-19 23:00:23 +02:00
Maximilian Wolff
e50890c490
[ocaml] Revise latest improvement to layer 2020-08-13 21:45:59 +02:00
Edwin Török
350a6ecdb8
lang/ocaml: fix flycheck-ocaml activation
We should always define the 2 flycheck initialization functions:
Spacemacs will call them as needed only when enabling syntax checking.
Previously flycheck wasn't getting activated at all.

Only activate `flycheck-ocaml` when a `.merlin` file is present.
It would work when there isn't but there is a high chance that you will
get a lot of errors displayed because it could not find any of the used
modules (`.merlin` specifies module paths).
OCaml projects usually do have a `.merlin` file
(either hand crafted or generated by the build system).

Signed-off-by: Edwin Török <edwin@etorok.net>

lang/ocaml: add merlin-eldoc and merlin-imenu support

This displays the type and documentation of thing under point
and highlights occurrences automatically when idle. Could be achieved by appropriate use of
keyboard shortcuts already set up by this module.

However `merlin-eldoc` can also display the expected type of function call parameters,
which merlin itself wouldn't.

`merlin-imenu` allows jumping to top level modules/functions/etc. bound
by default to `SPC j i`.

Signed-off-by: Edwin Török <edwin@etorok.net>

lang/ocaml: add merlin-iedit multiple cursor refactoring

bound to `, r e`.

Signed-off-by: Edwin Török <edwin@etorok.net>

fixup! lang/ocaml: add merlin-iedit multiple cursor refactoring

fixup! lang/ocaml: fix flycheck-ocaml activation

fixup! lang/ocaml: add merlin-eldoc and merlin-imenu support
2020-08-13 20:29:30 +02:00
Maximilian Wolff
ce73d31263
[bibtex] Fix some minor issues in bibtex layer 2020-08-10 12:47:54 +02:00
Kalle Lindqvist
63a42d7600
[bibtex] cleanup layer, bind helm-bibtex and add ivy support
biblio-/core is pulled in by multiple packages in this
layer already and their package declarations was empty.
Users can access the functionality biblio offers
from helm-bibtex.
2020-08-10 12:05:55 +02:00
romain.gautier@nimamoh.net
ba982822c6
Replace deprecated clojure-cheatsheet with helm-cider 2020-08-09 23:59:34 +02:00
Maximilian Wolff
d65c091656
[clojure] Document new automatic namespace switching in REPL 2020-08-09 11:57:58 +02:00
Brandon Adams
3663b29a48
Support optional set-namespace argument to Clojure layer's , s B
The spacemacs analogue of cider-load-buffer-and-switch-to-repl-buffer
doesn't accept an argument to set the namespace while you are switching
to the repl buffer. This adds support for an argument, invokable with
the universal argument, for setting up the namespace as well. This will
eliminate an extra `(in-ns ...)` or `, s n` call as long as you invoke
`, s B` prefixed by the universal argument: `SPC u , s B`.
2020-08-09 11:57:58 +02:00
duianto
e290dfbe7a [hy] Fix readme, remove = around links 2020-08-09 11:45:26 +02:00
duianto
c6dc8fad47 [rust] Fix .ron support
Missing parentheses around:
"\\.ron\\'" . ron-mode

in the line:
:mode "\\.ron\\'" . ron-mode

Updated the rust readme to mention the .ron support.

And added a changelog.develop entry.
2020-08-09 11:30:00 +02:00
Daniel Hutzley
c8f7752dfe Add Rusty Object Notation (RON) support to the Rust crate, predominantly used by the Amethyst Game Engine 2020-08-09 11:18:46 +02:00
duianto
240de6fe4f [hy] Add auto-completion installation instructions
hy-mode relies on jedhy for auto-completion
2020-08-09 11:14:58 +02:00
beyondpie
3388972c26
[ESS] Fix: remove obsolete variables in ESS (#13826)
* [ESS] Fix: remove obsolete variables in ESS

- use ess-offset-continued to replace the obsolete variables (from ESS 15.04):
  ess-first-continued-statement-offset
	ess-continued-statement-offset

- remove ess-expression-offset
  no such variable now

* [ESS] fix: keep ess-default-style instead of ess-style

- keep the original ess-default-style instead of ess-style
  since ess-default-style will be obsolete till ESS 19.04
	while current ESS version is 18.10
2020-08-08 07:35:25 +02:00
Keith Pinson
75cd5a6c79 [haskell] fix: keybindings not bound in haskell-literate-mode
`literate-haskell-mode` was renamed to `haskell-literate-mode` in this commit:

7ccb1ab0cc

Even though a deprecated alias was added, it broke Spacemacs' keybindings, which
were still all bound w.r.t. the old name.
2020-08-07 22:23:06 +02:00
Martin Sosic
9d0174bd37 Added FAQ about fixing HLint parse error. 2020-08-07 22:12:42 +02:00
emacspace
7c3a10c3a1 documentation formatting: Fri Aug 7 11:44:44 UTC 2020 2020-08-07 13:54:27 +02:00
Maximilian Wolff
5e7f2d1b43
[nim] Add experimental lsp support 2020-08-07 13:32:45 +02:00
duianto
04b80d610a [python][doc] Fix emphasis
README.org
Buffer formatting, first paragraph
The apostrophes before: yapf and black
caused the org emphasis verbatim equal signs to be visible.

config.el
python-formatter variable docstring
An apostrophe instead of a backtick, before the possible value: lsp
caused it to be shown with the default docstring color.
2020-07-29 08:37:42 +02:00
Tommi Komulainen
f57ebbb994 [typescript] configure tslint also for lsp backend 2020-07-28 15:34:27 +02:00
Jaakko Luttinen
3834bb1151 [python] Support --last-failed for pytest. Fixes #12023 2020-07-28 14:19:44 +02:00
Martin Sosic
684976c993 [javascript] Add README details about linter configuration 2020-07-24 11:12:10 +02:00
Robert Roland
d98cccaa2f [rust] Small typo fix
This fixes a small typo, switching ` for =
2020-07-24 10:54:02 +02:00
Maximilian Wolff
afc133d2ff
[groovy] Fix broken binding for non-lsp company backend 2020-07-18 10:07:30 +02:00
duianto
dd397b1ad5 [semantic-web][docs] Fix layer renamed from semweb 2020-07-18 09:39:35 +02:00
Keith Pinson
4e57eaceea
Remove gradle-mode to stop it breaking bindings of other major modes
After using Java mode, Gradle keybindings infect or even clobber keybindings of
any subsequently used major-mode. For example, the critical Agda major mode
keybinding of `l` as `agda2-load` gets with a Gradle menu!

The cause, found by @duianto, is that `emacs-gradle-mode` sets itself to a
[global](e4d665d578/gradle-mode.el (L176-L183))
minor mode. The docs for `define-minor-mode` say about `:global:`

> If non-nil specifies that the minor mode is not meant to be
> buffer-local, so don't make the variable MODE buffer-local.
> By default, the mode is buffer-local.

I don't know why `gradle-mode` is doing this; presumably there is some reason or
need for it. But the author of that package hasn't been on GitHub since 2017,
and the last update of the package itself is from early 2015.

To seal the deal, `gradle-mode` hasn't been working anyway (at least, I've never
got it to work). I've been running Gradle by launching a terminal within Emacs.

Fixes #13750.
2020-07-18 09:30:35 +02:00
Codruț Constantin Gușoi
b3bbbd229d Update changelog with most important changes 2020-07-17 21:02:28 +01:00
Codruț Constantin Gușoi
698a981e8c Adds text insertion functinos and keys 2020-07-17 21:02:28 +01:00
Codruț Constantin Gușoi
69078f8d9b Disable the magic comment insertion by default 2020-07-17 21:02:28 +01:00
Codruț Constantin Gușoi
f4f9f74075 Use refactor prefix for the quote and block toggles 2020-07-17 21:02:28 +01:00
Codruț Constantin Gușoi
ecb06efbb4 Fix ruby mode handling for special files 2020-07-17 21:02:28 +01:00
Maximilian Wolff
56338b537d
[elm] Add lsp support 2020-07-17 18:13:18 +02:00
emacspace
dec350eb84 documentation formatting: Sun Jul 12 08:21:50 UTC 2020 2020-07-12 21:03:53 +02:00
John Practicalli Stevenson
5f7e56fecc [clojure] refactor namespace key bindings
Add key bindings to refactor namespace forms for existing functions in CIDER.

"ran" 'clojure-insert-ns-form
"raN" 'clojure-insert-ns-form-at-point
"run" 'clojure-update-ns
2020-07-12 21:01:57 +02:00
Maximilian Wolff
920f568d81
[groovy] Make all variables adhere to layer naming scheme 2020-07-12 01:42:44 +02:00
Maximilian Wolff
8e3ea78191
[kotlin] Add lsp support 2020-07-12 01:34:25 +02:00
Maximilian Wolff
f3f0e3a98d
[groovy] Fix missing ")" in documentation 2020-07-09 22:05:19 +02:00
Maximilian Wolff
3985f0042b
[vimscript] Add lsp server support 2020-07-09 22:03:55 +02:00
Maximilian Wolff
ac3752ffd7
Add missing prefixes to global application bindings 2020-07-06 23:13:52 +02:00
Maximilian Wolff
eacab70047
[groovy] Add lsp server support 2020-07-06 22:26:07 +02:00
Magnus Therning
7f2dfe9c91 [haskell] Move keybindings when using LSP
A few of the layer's keybindings are shadowed when using the LSP backend:

- `F` - format buffer using stylish
- `hh` - lookup on Hoogle
- `gi` - navigate to imports

These are useful shortcuts to keep, so when the LSP backend is in use they are
rebound like this:

- `F` -> `S`
- `hh` -> `hg`
- `gi` -> `gl`
- `hH` -> `hG` (not one that is shadowed, but rebound to bind external and local
  Hoogle lookups to similir shortcuts)
2020-07-05 22:33:08 +02:00
Ade Attwood
7a9a16ec96 Add ctp files to html language
When editing Cakephp template files there is not highlighting. This adds the
`.ctp` files to the html language using web-mode.
2020-07-03 22:41:35 +02:00
Maximilian Wolff
b82bc40b3c
Fix ignored popwin declarations
Popwin automatically configures pupo purposes
if properly configured. While I was checking
the existing configs I have found that the
settings will be ignored if the config is not
done via a post-config hook.

A quick search revealed a lot of popwin configs
which never had any effect.

This commit fixes these and with this also
restores the missing pupo configs.
2020-07-03 21:51:33 +02:00
Ivan Yonchovski
f895dfc2a9 Remove the references to lsp-ui-flycheck-enable 2020-07-03 20:18:17 +02:00
Maximilian Wolff
b68b44a1b1
[tern] Remove unmaintained package company-tern
Company tern is not longer on melpa and had to be removed.
See #13725 for details.
2020-07-03 01:18:40 +02:00
Thanh Vuong
4928a9f55d [sql] fix regession by #13718
remove sql-mode which is not a package move its init to init-sql
2020-07-02 10:29:50 +02:00
emacspace
89b265e779 documentation formatting: Wed Jul 1 19:13:36 UTC 2020 2020-07-01 21:23:53 +02:00
Shunya Ishii
403aef6fd4 [SQL] Add lsp support 2020-07-01 20:49:01 +02:00
Joel Pettersson
244b3f58a2 [go] Fix search for current test function to run
spacemacs/go-run-test-current-function() previously failed when point was
anywhere but at the end of the line on the first line of the test function to
run.
2020-07-01 20:45:04 +02:00
Magnus Therning
c2950ac22a [haskell] Remove hayoo from Haskell layer keybindings 2020-06-24 22:45:14 +02:00
Maximilian Wolff
938a7395dc
[json] Add lsp support 2020-06-23 22:58:26 +02:00
Dan Burton
deeed044fd update stack project-root command 2020-06-23 19:32:17 +02:00
emacspace
78176ff6fa documentation formatting: Sat Jun 20 21:17:28 UTC 2020 2020-06-20 23:38:28 +02:00
timor
6f39c20e8e [factor] Support running graphical Factor listener from Spacemacs
Fuel mode is responsible to connect to a Factor instance.  This change extends
the Factor layer to handle a graphical listener process, to which fuel can
connect afterwards.

A major motivation is also to make it easier to develop with different Factor
versions, which can be specified with (project-/directory-specific) variables.
When starting a Factor listener in a certain location this way, the elisp code
for fuel/factor mode is reloaded from that location.
2020-06-20 21:07:15 +02:00
Matt Kramer
5fcd84d845
[latex] Init jump handlers in LaTeX-mode-hook
AUCTeX is weird: It reports major-mode as latex-mode (since TeX-latex-mode is
applied as an :override advice on the basic built-in latex-mode), but its mode
hook is LaTeX-mode-hook, not latex-mode-hook (which is only run by the built-in
latex-mode). Since bind-map uses the value of major-mode, we must pass
latex-mode to spacemacs|define-jump-handlers. But then
spacemacs//init-jump-handlers-latex-mode gets added to latex-mode-hook, which
never gets run. So we must manualy add it to LaTeX-mode-hook.

[latex] Use dumb-jump as primary jump handler

Otherwise, the default is used, which prioritizes evil-goto-definition over
dumb-jump-go. Dumb Jump tends to Just Work, while evil-goto-definition doesn't
handle LaTeX very well, at least not without a TAGS table.

[latex] Update CHANGELOG.develop
2020-06-11 01:18:47 +02:00
Bjarke Vad Andersen
0e9edda361 [Scala] Add lsp-metals
Having an explicit dependency on lsp-treemacs for post-init-lsp-treemacs is no
longer necessary in the Scala layer, as lsp-metals superseeds it.
Removed lsp-metals-treeview-enable as it no longer exists.
2020-06-11 00:43:12 +02:00
Jay Z
34a446724f
Add Go command variables
This is a squash commit, it includes:
* Add go run and go test command variables
* Update go README for go-run-command and go-test-command
* Update CHANGELOG
2020-06-11 00:12:56 +02:00
Benjamin Yang
7f5a53c2ef Racket: actually switch to insert state in REPL
As per the README, `SPC m s B' should put the REPL buffer in insert state, but
the keybinding as defined puts the racket file itself into insert state, not the
REPL.  This means that on returning to the racket file buffer, the cursor is
left in insert state, which means it is easy to accidentally add unwanted text
into the file.

To fix this, a `with-current-buffer' wraps the `evil-insert-state', so that
insert state is enabled in the REPL buffer, not the file being edited.

The first time this is run, `racket-run-and-switch-to-repl' is asynchronous of
`evil-insert-state', so trying to get the Racket REPL buffer will error.  To fix
this problem, we wrap the `with-current-buffer' with a check to determine that
the Racket REPL buffer is live.  The first time the Racket REPL buffer is
created, the contents will not run, since the Racket REPL buffer will not yet be
live.  This is fine, since we enter the REPL in insert state automagically.

This change does not need to be done to `spacemacs/racket-send-last-sexp-focus',
`spacemacs/racket-send-definition-focus', or
`spacemacs/racket-send-region-focus' since these functions follow all of their
racket-send functions with `(racket-repl)' before calling `evil-insert-state'.
2020-06-10 22:55:58 +02:00
Maximilian Wolff
1660527cd7
[Elixir] Remove traces of flycheck-mix from docs and layer variables
flycheck-mix has been removed by the package author as being
obsolete with proper lsp and alchemist support. Therefore
the layer also has been cleared of it as it cannot longer
be found on Melpa.
2020-06-08 22:59:48 +02:00
Tomasz Kowal
653fbab6bc
Remove flycheck-mix-compile in favour of default lsp and alchemist checkers 2020-06-08 22:50:31 +02:00
emacspace
064727f2f2 documentation formatting: Sun Jun 7 20:46:17 UTC 2020 2020-06-07 23:07:07 +02:00
Jannis Dohm
190b3e9f97 Added additional tabular environments
Added additional tabular environments to latex-nofill-env variable.
This deactivates the automatic fill in a few more tabular environments.
2020-06-07 18:27:10 +02:00
Keith Pinson
f5fddc4256 [scala] drop support for Unicode arrows, now deprecated in Scala
As of Scala 2.13, Unicode arrows are deprecated:

* https://github.com/scala/scala/pull/7540
* https://github.com/scala/scala-dev/issues/585
* https://github.com/scala/bug/issues/11210

Using one will give a deprecation warnings like so:

> The unicode arrow `⇒` is deprecated, use `=>` instead. If you still wish to
> display it as one character, consider using a font with programming ligatures
> such as Fira Code.

As such the Scala layer's version slick capability to replace ASCII arrows with
Unicode ones is no longer useful, and I have removed it.

Based on my tests it doesn't seem that there is a need for a more graceful way
to deprecate this: i.e. nothing fails if there is extra junk in `:variables`.
2020-06-07 12:51:10 +02:00
Maximilian Wolff
ecba7ad0dc
[c++] Fix not loading of "c-c++/post-init-company" function 2020-06-05 22:37:08 +02:00
Maximilian Wolff
23976ab799
[go] Remove duplicated code and run golangci-lint only if no errors are found
Before the decision which linter to run before golangci-lint has been
taken by the layer. However this can also directly be done by the
checkers.

Also golangci-lint did run even when the previous checker still reported
errors. With this it is only called if the previous checker is satisfied.

All thanks goes to Tommi Komulainen.
2020-05-27 18:16:47 +02:00
Maximilian Wolff
1ec43e7262
[go] Next try to make golangci-lint support more stable 2020-05-26 00:19:38 +02:00
Maximilian Wolff
c6c931bc1e
[go] Make golangci run all available checkers and backup with go-build
Flycheck-golangci was not properly conigured which resulted in
not replacing disabled standard linters like go-test.

In addition there seems to be an issue in the current golangci
build causing the linter to fail. In this case spacemacs now
shows at least basic errors from go-build. When they are fixed
the linter should be able to work normally again.
2020-05-24 23:46:10 +02:00
emacspace
275b519f0a documentation formatting: Mon May 18 22:06:40 UTC 2020 2020-05-20 22:24:46 +02:00
Maximilian Wolff
015303a701
[extempore] Fix BEGIN_SRC block in doc and provide better eldoc setup
A BEGIN_SRC block in the documents had no language specified
which would break CI.

I have also changed the eldoc setup to run each time the mode is
entered instead of only in the initially loaded buffer.
2020-05-19 00:00:44 +02:00
Ben Swift
86fe1ba2d1
add layer for the Extempore programming language
https://github.com/digego/extempore
2020-05-18 23:43:06 +02:00
Francisco Rodera
5396a36e18 [doc] Update list of suggested packages to install with python-language-server
Removed suggestion to manually install Python packages that are already
dependencies of python-language-server [1].

[1] 6a7eae7600/setup.py (L50-L58)
2020-05-18 23:26:58 +02:00
Maximilian Wolff
1fd90fc1dc
Update instructions for dap integration and update existing layers
The previous way of adding dap to a layer did add the mode
unconditionally to `spacemacs--dap-supported-modes` causing
dap bindings to be added also when no lsp backend was used.
2020-05-16 23:40:38 +02:00
Maximilian Wolff
743d413abc
[plantuml] Fix config to have the package use local jar execution
If not done plantuml-mode will try to work with the online
server and fail during parsing of its response.

Reported in #13574
2020-05-16 12:45:12 +02:00
Shrutarshi Basu
62fdd198bb
Add racket-xp-mode to Racket layer
racket-xp-mode is an optional minor mode that enhances the racket-mode to
explain and explore Racket code. The racket-xp-mode is started with a mode-hook
on racket-mode. Deprecated racket-mode functions are replaced with their
racket-xp-mode versions. The remaining racket-xp-mode functions are added to
keybindings as per Spacemacs conventions.

Also add the racket-mode directory to .gitignore.
2020-05-15 22:58:29 +02:00
lawr
f9ffb8dc94 Avoid unnecessary packages installation of tern layer
Fixes #13530
2020-05-11 09:42:13 +02:00
Shunya Ishii
c54de3caa4 [clojure] Change leader key to fix warning
Fix this warning when reloading spacemacs configuration:

```
Error (use-package): cider/:init: Key sequence e p ; starts with non-prefix key e p
```
2020-05-11 09:39:15 +02:00
emacspace
7dd2091738 documentation formatting: Fri May 8 22:03:52 UTC 2020 2020-05-09 00:11:48 +02:00
Thanh Vuong
c866f61fdb [javascript] proper hook setting for js-doc
move stray execution in fn into package init
2020-05-08 23:27:20 +02:00
刘冲
aaaf1c89a2 Update README.org of clojure layer to remove redundant linting via... 2020-05-08 23:18:03 +02:00
Xiang Ji
ae2efb50e0 [ruby] Add instruction on disabling the automatic insertion of encoding comment 2020-05-08 22:55:29 +02:00
Hideaki Kawai
d96ff261f1 [idris] Add to spacemacs-indent-sensitive-modes 2020-05-08 22:34:53 +02:00
pancho horrillo
9acafc345a [major modes]: Add keybinding for pkgbuild-update-srcinfo
The function pkgbuild-update-srcinfo was just added¹ to pkgbuild-mode,
and allows to easily produce a .SRCINFO file for a given PKGBUILD,
which is a required¹ element of an AUR package.

¹: https://github.com/juergenhoetzel/pkgbuild-mode/pull/18
²: https://wiki.archlinux.org/index.php/.SRCINFO
2020-05-08 22:16:37 +02:00
emacspace
d0f5477c32 documentation formatting: Wed May 6 22:11:32 UTC 2020 2020-05-07 01:52:26 +03:00
duianto
106823bd93 [php][doc] Update readme
Wrap code snippets in source blocks.
Fix spelling.
Wrap lines at 80 chars.
2020-05-07 00:02:44 +02:00
emacspace
42c24bd73c documentation formatting: Wed May 6 21:12:48 UTC 2020 2020-05-06 23:21:46 +02:00
Ivan Yonchovski
a3ea02d6bd [lsp][dart] Fix dart layer
- lsp-dart was moved into separate package so it has to be requred separatelly.
2020-05-06 23:01:18 +02:00
Ivan Yonchovski
b227a68c7b [emacs-lisp] Added emr integration
- I have used the shortcuts from the clojure layer
- see https://github.com/Wilfred/emacs-refactor
2020-04-20 19:30:22 +02:00
Alexander Konotop
2c2cfe6f92 Added dap inialization for php layer. Updated a manual respectively. 2020-04-20 19:27:13 +02:00
Maximilian Wolff
5f12569954
Move conda and ipython-notebook layer from +lang to +tools category
Also adjusted the tags to match the folders the layers
are in. I have also updated the binding for imenu mentioned
in protobuf layer and adapted the kubernetes tags to register
as tool instead of as os.
2020-04-18 21:28:14 +02:00
Hans Jang
39f774f70b
[Python] Reflect upstream pytest update to python-test-last
This is a squash commit, it contains:
* Reflect upstream pytest update to python-test-last
* Update CHANGELOG.develop
2020-04-16 23:37:25 +02:00