Commit Graph

2377 Commits

Author SHA1 Message Date
Dan Kessler 83d687534c tidy read syntax for anonymous functions
First, change read syntax for anonymous functions currently written '(lambda to
instead just be (lambda; otherwise this raises a warning.

Next, while we're at it, change all instances of #'(lambda to just (lambda,
since the two are equivalent and the latter is more concise (excepting anything
in core/libs or in /local/ subdirs of layers)

https://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html#index-_0023_0027-syntax
2022-05-11 19:24:54 +02:00
Rathur421 895deed51a Add support for code-cells in python layer 2022-05-11 19:15:31 +02:00
jgart 2218a5e286
common-lisp: Fix typo (#15507) 2022-05-11 02:34:17 -04:00
Ben c37d505625
Prefix obsolete aliases with "cl-" namespace. (#15494) 2022-05-02 00:11:19 -04:00
Julien Debon 9b6083b32d
Fix NPM package to install for JSON lsp (#15492) 2022-04-28 10:39:37 -04:00
Riccardo Binetti abc028e24e
[zig] Fix setup backend hook (#15483) 2022-04-21 19:26:09 -04:00
Harold Cooper b3e67aafe2
fix typo (#15470) 2022-04-14 13:56:58 -04:00
SpacemacsBot 9f1155a998
[bot] "documentation_updates" Tue Feb 22 16:39:44 UTC 2022 (#15373) 2022-02-22 11:44:00 -05:00
Keith Pinson e9adfe9122
[scala] add keybinding for running `Test / compile` in SBT (#15372) 2022-02-22 11:37:17 -05:00
thanhvg 9deb58d16a
[elisp] add elisp-def (#15315)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-12 05:14:57 +00:00
Lucius Hu d2b566406a
rust: respect `lsp-use-upstream-bindings`
This is needed after 1d45278a71
2022-01-31 04:14:59 +00:00
SpacemacsBot 19bde126a5
[bot] documentation_updates (#15271)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-01-15 02:29:19 +00:00
John Practicalli 84033e168d [clojure] add kaocha-runner as optional package
Add kaocha-runner.el to the Clojure layer to enable running the kaocha test
runner from Emacs Cider

Kaocha runner added to the layer via the clojure-enable-kaocha-runner variable

Add key bindings to call Kaocha runner
2022-01-14 18:03:53 +01:00
Lucius Hu 7cb37ee58e markdown: Remove orgtbl
Entirely removed orgtbl from markdown layer since it causes problems.
Users may still manually enable it if they know what they are doing.
2022-01-12 13:14:05 +01:00
Maxi Wolff faaf87a375
[semantic-web] Fix missing package, ttl-mode 2022-01-03 22:40:10 +01:00
shdennlin 8cbcc9f085 Fix #14162, python-execute-file not using in virtual environment 2022-01-01 15:55:17 +01:00
emiltoacs c017aa9617 [lsp-latex] Fix warning void variable TeX-view-program-selection
Remove the call to =spacemacs//latex-setup-pdf-tools= in latex/init-lsp-latex
since it is already called in the init-auctex which is the main package
2022-01-01 14:38:35 +01:00
Thanh Vuong 902d210361 [auto-completion][julia] Revert #15171, Proper fix for #15169
This reverts commit f2755533de.

This adds fix for julia layer breaking yasnippet setup.

Commit f2755533de fixed a specific bug in julia
layer but it loads yasnippet and friends on start up which adds 1 sec to my
startup time even though I don't use julia.

Julia layer loads lsp-julia early on startup, which loads lsp who then loads
yasnippet behind the scene unknown to spacemacs and use-package. That's why our
nice and ordered setup for yasnippet and yasnippet-snippets failed as discussed
in https://github.com/syl20bnr/spacemacs/pull/15171. We now tell use-package to
defer its load.
2021-12-30 18:35:37 +01:00
Daniel Nicolai ab19ea1de5
Coq layer README add optional requirement (auto-completion layer) (#15195) 2021-12-04 16:09:43 +00:00
deb0ch b108f8b319 Add binding for markdown-table-align 2021-11-20 20:35:42 +01:00
Keith Pinson 415f367589 [scala] Shortcut keys for common/standard SBT commands
It's nice to have a way to use common SBT commands without having to enter a
Hydra, and without having to type them out or select from a history list. The
following should be standard and quite common:

+ `scalafmtAll`
+ `compile`
+ `test`

Added mnemonic keybindings that I think match Spacemacs conventions. They
behaviors also give better parity with the build capabilities of other major
modes, which frequently support compile, format and test functionality.
2021-11-17 06:46:10 +01:00
Daniel Nicolai 51611b6e30
Fix autocompletion in elisp and text mode
Currently most or all auto-completion, using completion-at-point (i.e. the TAB
key), is 'hijacked' by company-capf in emacs-lisp-mode, while in text mode there
is no auto-completion by default at all.

This commit adds auto-completion for text-mode and slightly improves the
situation for emacs-lisp mode.
2021-11-13 10:26:45 +01:00
JAremko 500335a2c2 fix links 2021-11-04 20:36:23 +02:00
Maxi Wolff 1c0d7be28b
[python] Fix broken link 2021-11-02 23:00:02 +01:00
Lucius Hu 7d39d7363b python: Update README.org
It turns out that we've already migrated to pylsp from pyls a while ago, except that README.org is not updated.
closes https://github.com/syl20bnr/spacemacs/issues/15036
2021-11-02 22:23:24 +01:00
Robert O'Connor 16ae20bcfe Update go layer docs since go get is deprecated
See https://golang.org/doc/go-get-install-deprecation
2021-11-02 22:22:09 +01:00
Julien Debon c93b6726bc LaTeX: Fix broken key binding 2021-11-02 21:28:55 +01:00
Hans 256a4c0384
Update Bibtex Layer README (#15115) 2021-10-22 19:07:21 +00:00
Julien Debon 5b3bb908a1
LaTeX: Remove duplicate latex-refresh-preview (#15091) 2021-10-15 02:18:37 +00:00
Maxi Wolff d7a0492ac7
[python] Remove comments and fix new commands 2021-09-29 21:28:50 +02:00
Daniel Nicolai 071b48ba32 Add pydoc to python layer for better python doc functionality
Currently the python layer (without anaconda backend) provides only helm-pydoc
or pylookup-lookup-at-point functionality. Both these functions are cumbersome.
`pydoc-at-point-no-jedi` adds simpler doc functionality, therefore this commit
adds this command as a third option. It places it under `SPC m h p` because `SPC
m h h` is already taken by the anaconda doc functionality (it could be placed on
`h h` if anaconda is not available, but I did not bother to implement it)
2021-09-29 21:18:00 +02:00
Maxi Wolff d5cee22116
[python] Make ipython version detection more robust
The version string may return an empty string in that
case we treat this like a legacy version.
2021-09-29 21:08:51 +02:00
Maxi Wolff f5bd49cc8e
Revise some smaller layers 2021-09-21 22:07:38 +02:00
Daniel Nicolai 6a5b229256
Add simple workaround to ebib kill buffer issue (#15048)
See joostkremers/ebib#213By remapping spacemacs/kill-buffer to ebib-quit ebib is generally exited 'correctly' (if users really want to kill the buffer and mess up things, they can still do that in plenty of other ways).
2021-09-15 18:56:38 +00:00
Maxi Wolff 3c7956ced7
[html] Make leex support optional 2021-09-10 23:20:27 +02:00
Alex Wilson b5d3cf9678
Add .leex support for the html layer 2021-09-10 22:15:46 +02:00
SpacemacsBot b5aea5610e
[bot] documentation_updates (#15042)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2021-09-10 20:10:16 +00:00
Maxi Wolff 2fc428d527
[elisp] Fix small typo in README 2021-09-10 20:57:03 +02:00
Daniel Nicolai 6b9ec10c74
Implement inspector package to emacs-lisp layer see #15039 2021-09-10 20:50:41 +02:00
SpacemacsBot a3b40d2318
[bot] "documentation_updates" Sun Sep 5 06:17:34 UTC 2021 (#15035) 2021-09-05 02:49:47 -04:00
Evan Klitzke 4ebd512d14
c-c++: Package cpp-auto-include can be fetched from Melpa (#15037) 2021-09-05 06:16:30 +00:00
Eugene Yaremenko 848ae48373
Fix another link 2021-09-04 22:49:40 +03:00
Eugene Yaremenko ec19d6ac98
Fix link 2021-09-04 22:44:32 +03:00
Maxi Wolff b66e60cabb
[latex] Provide more robust version of latex-setup-pdf-tools 2021-09-04 21:35:49 +02:00
Daniel Nicolai 073fe39b38
latex layer add auto configure pdf-tools and open in split window
This commit makes the latex layer automatically configure pdf-tools as
latex pdf-viewer if the pdf layer is installed.

Additionally it adds a layer variable to configure pdf-tools to open in a
split-window. (Strangely, finding out how to achieve that is far from trivial,
and also not easy to google, because many hits do not provide the "correct"
answer (see the typical example
[here](https://emacs.stackexchange.com/questions/28056/spacemacs-latex-how-to-make-view-command-tile-vertically-with-emacs-window)).

Update layers/+lang/latex/funcs.el

Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
2021-09-04 21:14:45 +02:00
Cormac Cannon 0ad0e7d328 c-c++ layer : Added doxygen support and keybindings via gendoxy
<<Amendment 1>> Corrected two  whitespace issues as per lebensterben's
comments.
2021-09-04 20:51:44 +02:00
Zheng Qu 3bf2b481a8
[c-c++]: Fix keybinding for organizing includes (#15029) 2021-09-02 05:36:32 -04:00
akkuankka ed12b1118f
ocaml: Allow new OPAM command-line syntax (#15011)
As of new OPAM (OCaml package manager) v2.1, `opam config var share` is
no longer supported. Instead, the syntax is `opam var share`. To allow
both, this checks first with the new syntax, then if that doesn't work,
the old is tried. If neither produce any output, it fails as normal.

edit: Fix formatting.
2021-09-01 19:02:37 +00:00
SpacemacsBot 59852a6ab5 [bot] "documentation_updates" Wed Aug 25 22:37:51 UTC 2021 2021-08-26 02:00:32 +03:00
Lucius Hu abb088474a clojure: small change 2021-08-25 22:48:58 +02:00
Daniel Nicolai 80386e8414
Add (optional) ebib support to bibtex layer (#14876) 2021-08-25 19:31:18 +00:00
Aaron Zeng 671431f65c
[shell-scripts] Add key binding for shfmt-buffer (#15017) 2021-08-24 22:17:24 -04:00
Daniel Nicolai d02fae3c7a
Evilify and add cider-repl-history-mode keybindings (#14842)
Cider provides the possibility to search the REPL history, for which it opens
the history in a read-only buffer (which as usual, is best initialized in
evilified state).

This commit evilifies the cider-repl-history-mode buffer and defines some common
sense cider-repl-history-mode keybindings.
2021-08-24 01:20:26 +00:00
Lucius Hu b1c9ddc452
nim: fix broken indentation
Closes https://github.com/syl20bnr/spacemacs/issues/13470

Co-authored-by: duianto <notnaiud@gmail.com>
2021-08-23 23:55:00 +00:00
Thanh Vuong bb8dd09d3f [java] improve binding for lsp-java 2021-08-22 22:22:15 +02:00
Cédric M. Campos 31222468e6 [latex] Doc. TeX engine. Corrects typos, adds on TeX-command-master. 2021-08-22 21:12:15 +02:00
Anupam | अनुपम 9745c4e88a
Add purescript formatting support (#14984) 2021-08-20 03:48:29 +00:00
Carlos Ferney Clavijo Rendón a99b527056
[erlang] add DAP support through erlang_ls-dap (#14996)
* [erlang] add DAP support through erlang_ls-dap
2021-08-20 03:15:41 +00:00
Dan Kessler 3a52081c23
[major-modes] add evil-matchit support for matlab (#15000)
* [major-modes] add evil-matchit support for matlab

If `evil-matchit` is available, configure it for us in `matlab-mode`.

Note: This commit by itself doesn't actually do anything, because currently,
`evil-matchit` supports `octave-mode`, but not `matlab-mode`, although it's a
very simple matter of just turning on its `octave-mode` configuration for
`matlab-mode`. I'm submitting a PR against `evil-matchit` in order to support
`matlab-mode` out of the box.
2021-08-20 03:03:48 +00:00
Aaron L. Zeng 0f71054dcc [shell-scripts] Add format-on-save docs to README.org 2021-08-02 22:44:59 +02:00
Aaron L. Zeng 9e361eedc2 [shell-scripts] Add shell-scripts-format-on-save 2021-08-02 22:44:59 +02:00
Daniel Nicolai cc8f3a3a32 Add python-send-shell-with-output command
Currently when using any python-send-shell command, the output of the evaluation
is not shown in the comint shell (see Emacs bug#49822).
This commit adds a simple function to send input and get the output printed in
the comint process buffer.
2021-08-02 22:16:37 +02:00
Борис Верховский e2aff2c915 use new breakpoint() for more Python versions
follow up to #11490
2021-08-02 12:32:02 +02:00
Matthew Boston ee2fc1efc0 plantuml layer supports .puml extension 2021-07-28 18:34:26 +02:00
duianto 48d1f53630
Fix evil-matchit % jump in web mode (#14940)
problem
With the cursor on a parenthesis in js code in a .html document,
pressing:
```
%                      ;; evilmi-jump-items
```
jumps to the buffers last line.

solution from upstream issue
Jump to end when current line has a "if" keyword in web-mode and html-mode
https://github.com/redguardtoo/evil-matchit/issues/119
2021-07-22 07:45:26 +00:00
SpacemacsBot 284f56a397 [bot] "spacemacs_fix_org" Mon Jul 5 23:23:52 UTC 2021 2021-07-05 16:24:48 -07:00
Daniel Nicolai 443311c8f1
Small fix: unquote keymap symbols in scheme layer (#14866) 2021-06-22 15:29:02 +00:00
Maximilian Wolff 4039ad5852
[dune] Remove obsolete auto-mode-alist declaration
as the package is taking care of this already.
Fixes #14650
2021-06-16 22:13:09 +02:00
Arif Er 9bde46ee57
[python] Fix keybinding in README (#14851) 2021-06-16 16:14:01 +00:00
Alex Kapranoff 58168158d2
Replace flycheck-perl6 with flycheck-raku (#14818) 2021-06-10 06:38:51 +00:00
Maximilian Wolff 500e58341c
Defer loading of lsp servers up to when the buffer is visible 2021-06-06 22:26:31 +02:00
Alexander Konotop 12c4d510ff Update php dap debugging doc to cover xdebug v3 and docker debug host issues. 2021-06-06 21:46:30 +02:00
Armin Friedl 9630472187
racket: Function-quote company-mode-hook function (#14824) 2021-06-03 08:00:27 +00:00
Maximilian Wolff b96ace1313
[markdown] Remove obsolete orgtbl-mode cleanup
for it has a lot of side effects by globally replacing
-+- in the entire markdown buffer. Up to now markdown
has its own table insert function available via
`SPC i T` which is to be prefered.

In addition there seems to be no active
binding for `orgtbl-mode` in markdown making it very
unlikely that someone is still using it within markdown-mode.
2021-05-29 23:33:13 +02:00
Maximilian Wolff 358d60b676
[markdown] Add binding for inserting common tables 2021-05-29 23:10:51 +02:00
Maximilian Wolff e708f8dcaa
[go] Remove obsolete format statement and fix go-run-args passing 2021-05-29 22:33:59 +02:00
Dennis Mayr 627940d6d7
`(format (concat go-run-command)` modification
Changed `(format (concat go-run-command " %s %s .")` to `(format (concat go-run-command " .")`, to allow `main.go` running when functions are invoked from another file, as suggested here: https://github.com/microsoft/vscode-go/issues/3096

Correction: `concat go-run-command " ."` ->  `concat go-run-command " ." go-run-args`

Fixed as suggested
2021-05-29 22:30:56 +02:00
Daniel Nicolai 41f8430c1f
Evilify geiser-doc-mode-map and add keybindings in scheme layer (#14758)
In the scheme REPL, RET is bound to `geiser-repl--maybe-send` which most times
sends the input instead of inserting a newline. Therefore this separate
keybinding for that will always insert the newline is required.

Also the geiser-doc-mode is a read-only mode which should get evilified to
unshadow the convenient evil-like default Emacs keybindings.
2021-05-26 19:49:06 +00:00
w9 6d20f923bc Not using "call-interactively" result in error
`xref-find-definitions` is an interactive function that requires one argument `identifier`. You either need to `call-interactively`, or better yet, call it by forwarding the `sym-name` as the `identifier`.
2021-05-16 21:30:45 +02:00
Maximilian Wolff 80e2fd4279 [python] Add instruction to install pyls-memestra
for detecting of deprecated apis
2021-05-14 17:37:17 +00:00
emacspace 5c214e5160
documentation formatting: Thu May 13 22:33:42 UTC 2021 (#14773) 2021-05-13 18:51:36 -04:00
Daniel Nicolai f8301056c9
Update python layer to use pylsp (new maintained fork of pyls) (#14772) 2021-05-13 18:30:32 -04:00
Maximilian Wolff 104ce94389 [json] Fix "void variable" in init-json-navigator
which was caused by lazy loading.
2021-05-12 05:13:29 +00:00
Aaron Zeng 76133f86f7
[csv] Make tsv-mode inherit csv-mode's leader key bindings (#14763) 2021-05-11 20:45:45 -04:00
Maximilian Wolff 346b7a8a12
[json] Fix functions optionally working on regions
so that they work if no region has even been
selected in the current emacs section.
2021-05-11 21:24:52 +02:00
Maximilian Wolff 060f558530 [json] Avoid changing default evil state for tabulated-list-modes
See #14645
2021-05-09 21:14:26 +00:00
Maximilian Wolff ad8acf6d51 [latex] Add missing binding for 'org-ref-insert-cite-key with lsp 2021-05-09 20:37:02 +00:00
Zach Pearson d2e9730acb
Update pyls install command to use quotes (#14741) 2021-05-05 13:28:52 -04:00
Richard Kim efbf4c5fb5 set initial evil state of ccls-tree-mode to be emacs
Emacs mode is clearly better than vim mode, because j and k keys are already
bound to down/up motion. In addition as the tree mode is traversed, the
matching code pops up on the left in emacs mode but not in vim mode.
2021-05-04 20:50:23 +02:00
Aaron Zeng e15dbdc036
[ocaml] Fix name of layer variable in defvar (#14736) 2021-05-04 00:34:51 -04:00
n-raymond 1136a61645 [ocaml] Fix variable name to make ocamlformat properly working on save 2021-05-03 22:11:32 +02:00
Carlos Ferney Clavijo Rendón d24249b759
[erlang] fix run-prog-mode-hooks function call (#14725) 2021-04-28 10:31:59 -04:00
Lucius Hu 117f4b73ab
squash! Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 01:17:17 -04:00
Lucius Hu bc27203615
Removed legacy codes for emacs-version < 25.1 (#14497) 2021-04-28 05:04:53 +00:00
Benj 6b135c5a69 [scheme] Fix geiser company backends 2021-04-26 22:06:13 -04:00
emacspace 3dbe66dda7
documentation formatting: Mon Apr 26 13:46:02 UTC 2021 (#14718) 2021-04-26 09:53:56 -04:00
Daniel Nicolai 557fc0efab
Scheme layer, add REPL keybindings (#14708) 2021-04-26 09:42:48 -04:00
Lucius Hu c8b914c8de erlang: Fix local vars
- Labelled `erlang-backend` as safe local variable.
- Added local variable hooks of erlang modes:
  - `spacemacs//erlang-setup-backend`
  - `spacemacs//erlang-setup-company`

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-22 13:03:38 -04:00
Lucius Hu 983ace0097 elixir: Fix file local vars
- Labelled `elixir-backend` as safe local variable.
- Added local variable hooks of elixir mode:
  - `spacemacs//elixir-setup-backend`

All other setup functions are already added to local variable hook.

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-22 12:54:03 -04:00
Lucius Hu 870b2c9e5d dart: Fix local vars
- Labelled `dart-backend` as safe local variable.

All setup functions are already added to local variable hook.

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-22 12:53:11 -04:00