Commit graph

6124 commits

Author SHA1 Message Date
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
Michael Peyton Jones 797360a419
lsp: add call hierarchy binding (#15021) 2021-08-31 21:02:05 +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
Rainer Gemulla b1d287081f Fix typo that prevents ivy-rich from being enabled 2021-08-25 22:48:05 +02:00
Lucius Hu a9ba3b8fe0 git: restore layout when exiting magit buffer
closes https://github.com/syl20bnr/spacemacs/issues/14951

Co-authored-by: Richard Kim <emacs18@gmail.com>
2021-08-25 22:45:06 +02:00
Maxi Wolff f78c9bed18
[docs] Fix broken link in ivy README 2021-08-25 22:34:54 +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
Lucius Hu 198cc3a86f
Delete China.png
Chinese.png is sufficient
Deleting China.png to make in independent of a country and more inclusive to all users.
2021-08-24 01:28:53 +00:00
Lucius Hu fe147e391d
chinese: add notes on elpa mirrors
Co-authored-by: wztdream <39213018+wztdream@users.noreply.github.com>
2021-08-24 01:27:54 +00: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
Benjamin Hipple 1441dcc0f1
[org-roam] Fix evil org-roam-node-insert spacing (#15008)
When we're adding links, without this they get smooshed together under the
curser. Tested to work; resolves https://github.com/syl20bnr/spacemacs/issues/14137

Co-authored-by: Richard Kim <emacs18@gmail.com>
2021-08-23 22:10:32 +00:00
Daniel Nicolai f92af9989a Add option to enable all-the-icons-ivy-rich to ivy layer 2021-08-22 22:31:05 +02:00
duianto 05f5113b70 Use built-in get-buffer 2021-08-22 22:26:37 +02:00
Thanh Vuong bb8dd09d3f [java] improve binding for lsp-java 2021-08-22 22:22:15 +02:00
Daniel Nicolai 5a9b813c9e Add jump to specific manual keybinding (SPC h j)
This keybinding could also go under `SPC h M`, but that is currently taken by
`helm-switch-major-mode` (which seems a quite redundant command to me, as you
can switch major-modes directly using `M-x`/`SPC SPC`).
2021-08-22 21:59:34 +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
Benjamin Hipple 195a228927 [org-roam] Add "r" key to refresh org-roam links list buffer
This matches the org-agenda key, and is doubly important since we need to
refresh regularly to workaround the page-break-lines bug, as described here
https://github.com/syl20bnr/spacemacs/issues/14969#issuecomment-894624932
2021-08-22 20:32:43 +02:00
Daniel Nicolai 8c931b9c86 Evilify special-mode by default
As special-mode is a read-only mode, it could be evilified by default.
I am not aware of any case where this is not desired.
2021-08-22 20:26:32 +02:00
Aaron L. Zeng 1a9ebf42df Fix file rename target path when buffer name is uniquified
When the buffer's name is uniquified (because multiple buffers have
the same short name), it is no longer equal to the basename of the
buffer's file name, so it is incorrect to use the buffer name in the
rename operation.
2021-08-22 19:56:17 +02:00
Daniel Nicolai 2f0f7a3fe7 Fetch info+ via quelpa wiki recipe
Fixes #14525 and 8bcc420.
2021-08-22 19:19:41 +02:00
duianto d9c3dc678c
Fix evil search prompt on mouse leave (#15002) 2021-08-21 01:49:40 -04:00
duianto 6205d29e11
[compleseus] Fix keys (#14968) 2021-08-20 04:50:45 +00:00
duianto 090a4c89da
[compleseus] Fix junk file function (#14973)
problem
`SPC f J` (`spacemacs/open-junk-file`) shows:
cond: Cannot open load file: No such file or directory, helm

cause
`spacemacs/open-junk-file`
expects the completion layer to be either: `helm` or `ivy`

notes
The junk file function searches through the junk files,
when the ARG parameter is non-nil
(when it's called with a prefix argument: `SPC u SPC f J`)

The helm and ivy search functions might be choosing the search tool,
based on the first search tool it finds in the variable:
`dotspacemacs-search-tools`
`("rg" "ag" "pt" "ack" "grep")`

The consult package has these two search functions:
`consult-grep`
`consult-ripgrep`

This fix only uses those two for searching.
It checks for the executable: `rg` before `grep`
2021-08-20 04:49:30 +00: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
Aaron Zeng fdeb770103
[nixos] Add nixos-format-on-save (#14982)
* [nixos] Add nixos-format-on-save
2021-08-20 03:09:00 +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
Daniel Nicolai 3875f7a2fd Change show-all keybinding to outline-cycle-buffer in pdf layer
Emacs 28 adds the outline-cycle-buffer feature. Currently there is no keybinding
to fold the outline of a pdf. So let's replace show-all by it for >= Emacs 28,
because it is easier to remember a single keybinding for folding and unfolding
then having separate bindings for those.
2021-08-16 17:23:25 +02:00
Daniel Nicolai 8b05eb47c0 Evilify and add follow link (hint) keybinding to org-roam buffer 2021-08-16 15:21:08 +02:00
Dmitry Polienko 9bb3115bce
Remove obsolete paragraph from the LSP layer documentation (#14989) 2021-08-14 19:21:30 +00:00
duianto f3b902a304 Fix ahs ts, open prompt
problem
opening a prompt, ex: `M-x`
while the Symbol Highlight Transient State (`SPC s h`) is open,
leaves `auto-highlight-symbol-mode` enabled

cause
when the idle timer runs,
it tries to disable ahs mode in the prompt window
2021-08-14 16:12:25 +02:00
inwit 40ae5e2293 Add bindings for scrolling the message pane in tree-view
In standard notmuch-emacs, one can scroll back and forth the message
pane using `SPC`/`BKSPC`. Obviously, this is not the case in Spacemacs,
where `SPC` is reserved. There was no way to scroll the message pane in
this layer, so I added `M-d` and `M-u` wired to
`notmuch-tree-scroll-message-window` and
`notmuch-tree-scroll-message-window-back`.
2021-08-02 22:55:49 +02: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
duianto 7b5b69fda5 [compleseus] Fix indentation 2021-08-02 13:24:37 +02:00
Thanh Vuong 50f4fe183f [compleseus] add consult-line-multi 2021-08-02 13:20:42 +02:00
Борис Верховский e2aff2c915 use new breakpoint() for more Python versions
follow up to #11490
2021-08-02 12:32:02 +02:00
SpacemacsBot 168e68e2d5 [bot] "documentation_updates" Sat Jul 31 14:26:32 UTC 2021 2021-07-31 16:32:46 +02:00
dalanicolai 236eb94320 Fix google-translate functionality
This bug exists already since I started using Spacemacs about 1.5 year ago.
Because it was already reported upstreaim in
[this issue](https://github.com/atykhonov/google-translate/issues/52), I
implemented this fix only locally.

However it becomes time now to implement this fix globally, to fix the
google-translate functionality by default.
2021-07-31 16:25:20 +02:00
Daniel Nicolai 65121ddd30 Improve spacemacs/default-pop-shell docstring
Add instruction for controlling automatic change to working directory ('fixes'
2021-07-30 17:10:38 +02:00
Keith Pinson b2a18301fa [defaults] Disable line numbers with SPC t n n
Toggles are great and all, but the trouble with the various toggles for line
numbers is that they force you to remember and think about the fact that there
are variant forms of line numbers. To beginners or forgetful people the various
combinations of behavior can be unintuitive here (e.g. toggling off relative
line numbers does nothing if you are actual in visual line numbers mode). Though
it doesn't fit exactly into the normal stuff we have for toggles, due to the
complexity of this situation I think it is good to just have a way to say "line
numbers be gone!"

Wasn't sure what keybinding to use, so used a double-tap mnemonic.

If this PR gets rejected, there are a couple minor fixes that should probably be
pulled out and submitted separately.
2021-07-30 16:57:27 +02:00
Daniel Nicolai 295e4271ef Fix wrong buffer name after file rename
When providing only the new directory path (i.e. without new filename) while
moving a file to a new directory with `spacemacs/rename-current-buffer-file`,
currently Spacemacs opens the file in a new buffer with the directory name.

Additionally, the `file-renamed-p` gets set the wrong value. To fix both
issues (with minimal work), it is easiest to just fix the `new-name`
value (alternatively fixing the `rename-buffer` and `set-visited-file-name`
forms later would not fix the wrong `file-renamed-p` value issue).

Finally when called with a universal-argument, then that argument
unintentionally gets 'passed' in the interactive call to
projectile-invalidate-cache. So this PR fixes that by changing the interactive
call to a funcall.
2021-07-29 20:54:30 +02:00
Daniel Nicolai 15ec5c57e9 Evilify image-dired-thumbnail/display-image-mode-(map)s 2021-07-28 20:40:23 +02:00
Thanh Vuong dce3f1d722 [ivy] add open in other window for ivy-xref 2021-07-28 19:38:30 +02:00
Matthew Boston ee2fc1efc0 plantuml layer supports .puml extension 2021-07-28 18:34:26 +02:00
Andreas Sahlbach 579edd5deb fixed a small typo in the ivy docu
regarding the modifier for transient mode
2021-07-28 18:32:54 +02:00
SpacemacsBot 81eb82603c [bot] "documentation_updates" Wed Jul 28 13:13:07 UTC 2021 2021-07-28 15:35:39 +02:00
duianto 3b8bb7f5b7 [docs] Update org-roam key bindings 2021-07-28 14:09:04 +02:00
Alex Kapranoff 44affc4d2b Rename commands for org-roam v2 compatibility
Fixes #14929
2021-07-28 13:58:13 +02:00
duianto 431dfd5ad9 [docs] Update completion layer install notes
The other completion layers, need to be:
- removed
- commented out
- or listed before the active completion layer
2021-07-26 15:49:42 +02:00
Thanh Vuong 6121a5807b [compleseus] new completion layer consult embark orderless selectrum/vertico
Built on consult embark orderless selectrum/vertico.

It's been working ok. Basic features are in, let's merge it and let our community
improve it togegher :)
2021-07-26 10:48:20 +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
Deepu Mohan Puthrote eeb363f6e4 Add flag to enable org-brain support making it optional 2021-07-22 09:24:46 +02:00
duianto ba8074b604 Fix symbol highlight ts counter
problem
The Symbol Highlight Transient State (`SPC s h`) counter
ex: [2/7]

Shows: [0/0]
when opening the TS, either with `SPC s h`, `SPC s H`
or when navigating between symbols with: `#` or `*`

cause
The symbols haven't been counted yet, when the TS is opened.

And the counter is reset when `auto-highlight-symbol-mode` is disabled,
this happens when the TS is restarted, which happens when navigating to the
next/previous symbol with `#` and `*`.

solution
Highlight the symbol before opening the TS.
And only disable `auto-highlight-symbol-mode` when the TS is closed.
(when the TS buffer " *LV*" doesn't exist)

notes
This also shows the "No previously searched for symbol found" message,
when the variable `spacemacs-last-ahs-highlight-p` is void on startup.
2021-07-16 16:23:30 +02:00
JAremko af345fd4c1 [doc] fix links 2021-07-12 07:32:24 -07:00
duianto 483cdd1c0d Fix symbol highlight ts, infinite loop
problem
navigating to the next/prev symbol,
in the symbol highlight transient state: `SPC s h`
with: `n`, `N` or `p`

soft freezes Emacs (the freeze can be canceled with `C-g` twice)

cause
the upstream variable: `ahs-current-overlay` has been removed

solution
it was replaced with a function called: `ahs-current-overlay-window`
2021-07-10 15:10:43 +02:00
madand 5c75eb4ea3 Continue fixing and refactoring integration with auto-highlight-symbol
* fix `Symbol’s function definition is void: ahs-highlight-p`
* get rid of 2 instances of `eval`
* improve advicing code with the use of `advice-add`
* eliminate 2 redundant calls to `ahs-highlight-now` in adviced functions
* eliminate redundant `spacemacs/ahs-highlight-now-wrapper`
2021-07-08 07:00:31 +02:00
Tristan Hume 820d9fb955 Finish up fixing symbol highlighting
Fixed an issue where ahs-mode was being enabled before the check for it
already being enabled.

Switched the toggle to be based on the mode instead of the timer hack.
2021-07-08 07:00:31 +02:00
duianto 1069e37a98 Fix symbol highlighting
problems:
- Symbol highlighting is enabled on startup.
- The highlight isn't cleared when closing the
Symbol Highlight Transient State
- The `SPC t h a` symbol highlight toggle,
only shows a disabled message,
but the highlighting remains enabled.

cause:
Changes in the upstream package: auto-highlight-symbol
2021-07-08 07:00:31 +02:00
SpacemacsBot a082ade23b [bot] "documentation_updates" Wed Jul 7 12:41:59 UTC 2021 2021-07-07 05:43:08 -07:00
SpacemacsBot 284f56a397 [bot] "spacemacs_fix_org" Mon Jul 5 23:23:52 UTC 2021 2021-07-05 16:24:48 -07:00
JAremko 18f6486246 [doc] Fix exwm README.org 2021-07-05 14:30:55 -07:00
Ryan Prior be74dd786f
Adds function to run default shell in project root, with leader keys SPC p $ (#14856)
By using `projectile-acquire-root`, we will prompt the user for a project when
they call `spacemacs/projectile-pop-shell` outside a project directory.
2021-07-04 07:02:19 +00:00
duianto 9159393f9c
Fix exit keyword in symbol-highlight TS (#14890) 2021-07-03 16:59:23 +00:00
duianto cf21402c5c Revert "Fix which-key entries: gr and gs in dired and magit"
This reverts commit ec57b21a92.

A which-key change caused issues with this fix.
And the fix doesn't seem to be needed anymore.

The correct which-key entries appear without the fix.
2021-06-23 17:33:36 +02:00
Daniel Nicolai 443311c8f1
Small fix: unquote keymap symbols in scheme layer (#14866) 2021-06-22 15:29:02 +00:00
Arif Er b0ef47a885
[org] Fix org-habit (#14838) 2021-06-19 17:47:42 +00:00
Maximilian Wolff ab6b165e96
[dotnet] Change bindings to be based on p for project
as d is reserved for debuger integrations. Also make
sure that dotnet bindings are set for fsharp and csharp.
Fixes #14606
2021-06-16 22:47:11 +02: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
Arif Er 2fd3eb3edb
[transmission] Add new keybindings (#14819)
This commit adds 3 sets of keybindings and organises the keybindings so that it
can be read easier. The README file is also organised and cleaned up to be read
easier.

1. Marking and labelling

   Add a new keybinding to mark torrents and another to set the labels at point
   or for marked torrents.

2. Queueing

   Keybindings to manage how the queueing of torrents are added using the
   uppercase vim movement keys. A keybinding to logically sort by columns is
   also added.

3. Turtle mode

   A new keybinding while in `transmission-mode` toggles the
   `transmission-turtle-mode` minor mode. When it is active, a new set of 3
   keybindings will be active to change the settings of the minor mode.

Although there is a keybinding for `transmission-remove` in `transmission-mode`,
a new keybinding for `transmission-delete` is also added. This is done since
`transmission-remove` merely removes the torrent from Transmission but does not
delete the file(s).

The rest of the changes are reflected in `CHANGELOG.develop`.
2021-06-10 18:30:31 +00:00
Alex Kapranoff 58168158d2
Replace flycheck-perl6 with flycheck-raku (#14818) 2021-06-10 06:38:51 +00:00
Maximilian Wolff af193f769f
[git] Update instructions for global-git-commit-mode 2021-06-09 11:38:15 +02: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
Aaron L. Zeng 70ec22703a [nix] Add key binding for nix-format-buffer 2021-06-06 21:44:34 +02:00
Lucius Hu f0cadad38f
fixup fixup fixup #14715 (#14827)
funcs.el is loaded after packages.el so `spacemacs//support-evilified-buffer-p` is undefined at this point.

moved it inside the `defun` block and it should work.
2021-06-05 15:16:43 +00:00
Moritz 95b683c0a5
Fixed bugs and refactor in new EXWM layer
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>

Closes #14802
2021-06-05 15:02:57 +00:00
Lucius Hu d262103b5e
fixup! fixup! #14715 2021-06-05 09:53:23 -04:00
Lucius Hu 1d07f56aed
fixup #14715 (#14826) 2021-06-05 10:08:14 +00:00
Lucius Hu 53027df26a
exwm: fix missing kwarg 2021-06-05 06:04:02 +00:00
Lyall Cooper 5cd56a4668
Only load evil-collection in vim or hybrid mode (#14825)
As described in #9169, when using the emacs editing style the comment inserted at the bottom of a git rebase shows the incorrect key bindings. This is apparently due to `evil-collection` (changing the `git-rebase-mode-hook`)[3ed92cadda/modes/magit/evil-collection-magit.el (L523-L524)].

We can fix the issue by only loading `evil-collection` if we're using an evil-style editing mode.

Closes #9169
2021-06-05 03:44:32 +00:00
Markus Bertheau 8c8fc6463c
Use local copy of old devdocs for emacs < 27.1 (#14823) 2021-06-03 08:01:05 +00:00
Armin Friedl 9630472187
racket: Function-quote company-mode-hook function (#14824) 2021-06-03 08:00:27 +00:00
arifer612 27fa8f8f7d
Fix key binding in README in layers/tools/transmission (#14814) 2021-05-31 13:44:05 +00:00
Markus Bertheau 4acdf7733e
Fix one diminish pattern in a list in :spacediminish (#14810)
The code changed here wants to distinguish the cases of whether `arg` is a list
with one set of args to `spacemacs|diminish` or a list of a list of such args.
It used to look at the second element of `args` to make that distinction.
Consequently, if you want to specify a list of a list of args for
`:spacediminish`, you'd have to have at least two such lists of args in the list.

However in
38f582d785
a usage with a list of just one list of args was introduced.

This fixes changes the detection so that it looks at the first element of `arg`.
If that's a list, `arg` is assumed to be a list of lists of args to
`spacemacs|diminish`. If it's not, it's assumed to be just a list of args to
`spacemacs|diminish`. That works well because the first argument to
`spacemacs|diminish` is a symbol.

Fixes #14726
2021-05-31 04:39:16 +00:00
Maximilian Wolff c74b0f8bc0
[org] Remove unit tests for non existing function
for we do not longer require to replace org with
org-plus-contrib on the fly.
2021-05-30 12:36:26 +02: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
Maximilian Wolff 5e26865ef9
[org] Fix installation from nongnu elpa and double ownership of org 2021-05-29 22:12:28 +02:00
Richard Kim 63197014cc
use org and org-contrib packages rather than org-plus-contrib
setup org-contrib in org layer rather than spacemacs-org layer

follow-on fix for spacemacs-org layer
2021-05-29 21:10:21 +02:00
Lucius Hu d9132f8bc0
spacedminish: fixed bug
fixes https://github.com/syl20bnr/spacemacs/issues/14726
2021-05-28 02:10:15 +00:00
Rahul Rameshbabu 8365979326 [perforce] Add p4-shelve and p4-unshelve commands with keybindings
Shelving and unshelving changelists are operations commonly used when
choosing Perforce as a VCS solution. Package consumed by the "perforce"
layer already provides "p4-shelve" and "p4-unshelve" commands that can
be exposed by the layer. Provide keybindings for these two commands as
well.
2021-05-27 22:39:43 +02:00
Maximilian Wolff b29ed9b598
[docker] Register "q" to close the current window for docker modes 2021-05-27 22:34:27 +02:00
tvuong 3e93f56e58
[docker] simplify keybings for docker.el
use default transient bindings from docker.el which is very good
2021-05-27 22:23:31 +02:00
Thanh Vuong bc6163216c
[lsp] add keybindings for lsp-ivy/helm-lsp when use upstream bindings 2021-05-27 22:14:14 +02:00
Maximilian Wolff af86a142eb
[spacemacs-default] Replace "unless null" with "when" 2021-05-27 22:11:08 +02:00
Evan Klitzke 89844fe411
Add custom-file to recentf-exclude list 2021-05-27 22:08:21 +02:00
Maximilian Wolff 3b45182e45
[eaf] Add docs for new keybindings 2021-05-27 22:04:59 +02:00
Kjartan Óli Ágústsson 15b9e0fd8a Add bindings for opening eaf applications
EAF recently added a system monitor. Add `SPC a a s` to open it.
Also add `SPC a a M` to open the eaf music player.
2021-05-27 22:02:52 +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
emacspace 5ef4960d46
[bot] Auto-update (#14793) 2021-05-22 18:42:01 +00:00
HanshenWang a47b4a4672
[pdf] Update pdf-layer documentation (#14791) (#14792) 2021-05-22 17:40:53 +00:00
lin.sun 2515f141b6
[+intl/chinese] fix warning for quote lambda function (#14786) 2021-05-19 08:51:27 +00:00
Maximilian Wolff 37c8669d36 [parinfer] Allow to disable auto-installation
instead a path to the library can be set manually.
See #14568
2021-05-17 21:24:54 +00:00
Maximilian Wolff f51731bf98 [default] Fix the condition for dotspacemacs-use-SPC-as-y
as in my first version it was activating `SPC as y` when
it should actually disable it.
2021-05-17 20:48:37 +00:00
Maximilian Wolff a5d05c8fac [default] Do not take y as yes for prompts by default
this is now configurable in your dotfile.
See #14382
2021-05-17 20:43:09 +00:00
duianto 917ebbc4cb [version-control] Show bound but unlisted VCS TS key: d
In the VCS Transient State (`SPC g .`)
The key: `d` is bound to: `magit-ediff`
But `d` isn't shown in the VCS TS.
2021-05-17 22:10:11 +02:00
Dominik Schrempf 54cb40b9ca [helm] Add S-RET keybinding for helm modes to open in other window
Remove `C-o` keybinding from helm-bookmarks.

Add `S-RET` keybinding to open file/buffer/bookmark in other window for
helm-files helm-buffers and helm-bookmarks.

Advantage: Consistent behavior. It is pretty cumbersome to use the persistent
action provided by helm to open files/buffers/bookmarks in the other window.
2021-05-17 22:07:28 +02: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
Daniel Nicolai 639160ed95 Evilify xref--xref-buffer-mode 2021-05-16 21:20:36 +02:00
Lucius Hu 8e3ab24c36
fixup! #14770 2021-05-16 18:26:24 +00:00
Benjamin Yang fef9ba9e18
[exwm] Remove manual XF86 keybindings (#14770) 2021-05-15 16:24:01 -04:00
Maximilian Wolff 80e2fd4279 [python] Add instruction to install pyls-memestra
for detecting of deprecated apis
2021-05-14 17:37:17 +00:00
Dan Kessler 2c661ab49d
Ensure hjkl bindings are respected during company search/filter (#14768) 2021-05-13 19:01:48 -04: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 e9b4131d18 [auto-complete] Removed the last traces of transformer integration
They are mostly obsolete now and harmful for performance.
See #14547 for details.
2021-05-09 20:56:54 +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
emacspace 61f6480ef8 documentation formatting: Sun May 9 19:09:25 UTC 2021 2021-05-09 21:16:30 +02:00
Daniel Nicolai 72127a49cb Replace counsel-M-x command in eaf-layer
Counsel is specific to Ivy, the universal M-x command is
`execute-extended-command`.
2021-05-09 21:06:04 +02:00
HanshenWang 947763eeaa
[evil-better-jumper] Update layer documentation (#14744)
* [evil-better-jumper] Update layer documentation

* Correct location of =dotspacemacs-distinguish-gui-tab=
2021-05-08 22:31:24 +02:00
Colin Woodbury 5ba6520389 Revert "[keyboard-layout] Fix colemak-hneio next/prev line in magit"
This reverts commit 3acf188bad.
2021-05-08 22:28:52 +02:00
Daniel Nicolai 8ede09f875 Small fix to eaf-layer refactor
This PR reimplements the refactor changes by @lebensterben but with his fix as
he suggested [here](https://github.com/syl20bnr/spacemacs/pull/14681#discussion_r616060958)
2021-05-08 22:25:06 +02:00
emacspace a26121db4f documentation formatting: Thu May 6 20:14:11 UTC 2021 2021-05-07 07:32:24 +02:00
Maximilian Wolff c1c18b7eed Revert "add a feature to save file as a new file and open it in a new buffer"
This reverts commit 4fc78bdc02.
2021-05-07 05:29:22 +00:00
Maximilian Wolff f213b8cf20 Revert "[spacemacs-defaults] Move new function to correct file"
This reverts commit 1169eb3709.
2021-05-07 05:29:03 +00:00
Maximilian Wolff 0ffe16066f [vim] Disable unused functions in evil-better-jumper layer 2021-05-06 19:57:07 +00:00
Thanh Vuong 72807f3ef2 [vim] add evil-better-jumper layer
https://github.com/gilbertw1/better-jumper
2021-05-06 19:41:22 +00:00
Zach Pearson d2e9730acb
Update pyls install command to use quotes (#14741) 2021-05-05 13:28:52 -04:00
Lucius Hu 5c48a35bc8
fixup! #982e25 2021-05-05 03:54:55 +00:00
Maximilian Wolff 1169eb3709
[spacemacs-defaults] Move new function to correct file 2021-05-04 22:06:34 +02:00
tddsg 4fc78bdc02
add a feature to save file as a new file and open it in a new buffer 2021-05-04 21:52:34 +02: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
emacspace c69458150f documentation formatting: Mon May 3 22:15:02 UTC 2021 2021-05-04 00:24:54 +02:00
Maximilian Wolff fdda1bd281
[lsp] Fix missing [ in documentation 2021-05-04 00:10:13 +02:00
emacspace bf8cb19cca documentation formatting: Mon May 3 20:22:58 UTC 2021 2021-05-03 23:17:19 +02:00
Maximilian Wolff 99231d3a70
[lsp] Fix some smaller issues in documentation 2021-05-03 23:05:44 +02:00
Thanh Vuong 27f1519a5a
[lsp] add option to bind commands to lsp-command-map
`lsp-use-upstream-bindings` set to `t` then Spacemacs will bind all
`lsp-command-map` behind `SPC m`, `,` and `M-m`. This way the bidings will be
managed by upstream `lsp-mode` which is documented at
https://emacs-lsp.github.io/lsp-mode/page/keybindings/.

Spacemacs only replaces the prefix `s-l` with `SPC m`. For example:

| lsp binding | Spacemacs binding                   |
|-------------+-------------------------------------|
| `s-l w s`   | `SPC m w s` or `, w s` or `M-m w s` |
2021-05-03 22:53:11 +02:00
emacspace a2dc0c18e0 Built-in files auto-update: Mon May 3 19:32:32 UTC 2021 2021-05-03 22:17:33 +02:00
Kazark 220536fd39 [org] sane default strategies for enforcing TODO dependencies 2021-05-03 22:17:07 +02:00
n-raymond 1136a61645 [ocaml] Fix variable name to make ocamlformat properly working on save 2021-05-03 22:11:32 +02:00
Lucius Hu e5be31bb85
Bumped minimum emacs version to 26.1 2021-05-03 22:09:11 +02:00
duianto 29fa26af98
Add workspace action messages and open home buffer (#14709)
### Added workspace action messages
`SPC l w` followed by a number key `0-9`
or `SPC l w s` single window workspace
>Workspace 2 created

`SPC l w 1` from another workspace
>Workspace switched to 1

`SPC l w 1` from the same workspace
>Already on Workspace 1

`SPC l w c` clones the current workspace to the next free slot
>Workspace 1 cloned to 3

`SPC l w d` close the current workspace
Workspace 3 closed

### And
Open the Spacemacs home buffer when creating a new workspace
with the number keys. Previously it opened the scratch buffer.
2021-04-30 18:31:33 +00:00
Benjamin Yang 4e5a7233b0
SpacemacsOS: provide new layer variables for systray and autostart (#14714)
I'm not sure how best to start doing this, but the branch over at
timor:spacemacsOS has moved ahead a bit.  I've grown used to a lot of these
changes, and would like to see them moved to the main develop branch.  But, the
pull request (formed by merging in CestDiego:spacemacs/SpacemacsOS in #3321)
started diverging.

Again, I'm not sure how to approach moving together these two changes.  Maybe
@timor can help somehow??

This at the least moves in some little things from Timor's branch:

- Can enable exwm-systemtray with `exwm-enable-systray`
- Can enable running XDG autostart applications (only in XDG_USER_HOME/autostart
  for now) with `exwm-autostart-xdg-applications`
- Support for reading `.desktop` files and XDG autostart.
- Can specify additional code appended to exwm-init hook with `exwm-custom-init`

---

This PR also fixed some other existing issues, and improved documentation.

Co-authored-by: timor <timor.dd@googlemail.com>
Co-authored-by: Benjamin Yang <be11ng@users.noreply.github.com>
2021-04-30 18:29:17 +00: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
Lucius Hu 982e2515a3
[keyboard-layout] replace evil-magit by evil-collection-magit
`evil-magit` is part of `evil-collection-magit` now
2021-04-28 02:14:00 +00:00
wildwestrom 635c326c0a fixed asciidoc export
Fixed ox-asciidoc as per issue #14695
I just deleted one line, tested it, and it works again.
2021-04-26 22:19:42 -04:00
duianto 374fc28c76 Fix clone workspace
problem
Trying to clone a workspace `SPC l w c`
Does create a new workspace,
but it just shows the scratch buffer.

notes
In addition to fixing the cloning.

Show a minibuffer message:
Workspace: 1, cloned to Workspace: 2

To make it clear that the cloning worked.
Because the only visible difference, is that
one of the left side mode line numbers changed.
2021-04-26 22:11:22 -04: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
Zach Pearson d72e512993
Use timeclock-mode-line-display in default bindings (#14713) 2021-04-25 18:51:39 -04:00
emacspace eddf1dc460 documentation formatting: Fri Apr 23 14:03:32 UTC 2021 2021-04-23 23:00:39 +03:00
JAremko 982a3db01f [doc]fix the rest of exwm readme hls 2021-04-23 17:00:24 +03:00
JAremko 7f0f93d765 fix exwm readme 2021-04-23 16:54:12 +03: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
Kjartan Óli Ágústsson 7ef15a561a
Fix issues with EXWM layer (#14693)
Added header.
Removed cl-generic dependency which is not needed for current minimum version (or later) of Emacs.
2021-04-21 17:12:52 -04:00
Kjartan Óli Ágústsson e290b10060
Replace function aliases with their real names (#14688)
`first` and `list-length` are aliases for `car` and `cl-list-length`
respectively. Using these aliases causes emacs to error with a `symbol's function
definition is void` error, but using their real names causes no error.

Replaced them with `car` and `length`.
2021-04-21 19:42:26 +00:00
Kjartan Óli Ágústsson ec2c511c6f
Add support for org-roam-protocol (#14687)
Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
2021-04-21 19:40:33 +00:00
Aaron Zeng 433f6729e7
[ocaml] Fix typo (#14692) 2021-04-21 14:37:55 -04:00
Aaron Zeng 7e03196280
[ocaml] Fix for merlin package split (#14691) 2021-04-21 13:38:18 -04:00
wildwestrom 70be2c03d8
Added asciidoc support. (#14689)
You can now export org files as asciidoc documents.
2021-04-21 12:46:33 -04:00
ralph-cheng a6fc48dba4
bug fix - eslint not available for typescript-tsx-mode (#14685) 2021-04-21 11:04:51 -04:00
emacspace df15f8cc15 documentation formatting: Mon Apr 19 20:28:58 UTC 2021 2021-04-19 23:15:58 +02:00
Maximilian Wolff 2e02ac0a31
[exwm] Adjust layer README to match current standards 2021-04-19 23:04:38 +02:00
Diego Berrocal a664569a48
Add Emacs Window Manager (EXWM) Layer AKA SpacemacsOS (#3321)
* Add Emacs Window Manager (EXWM) Layer

The time has come of SpacemacsOS

* set window manager name to EXWM

* update copyright notice

* start server when EXWM is active

When using EXWM, Emacs should be ready to receive clients but the final choice
should be the user's in their shell configuration.

* respect Spacemacs naming conventions and layer organization

* leave keyboard remapping to users

* add EXWM states for Evil

* add support for helm-exwm when helm is in use

* use both exwm-randr and exwm-systemtray

* set up workspaces to match displays by default

* use ido-config instead of the deprecated workaround

When using helm-exwm, its sources distinguish title and class automatically. It
is only necessary to keep the buffer name updated when the window title changes.
When using ido, rename differently for different applications.

* add bindings for common X keys

* use standard prefix commands where available

Spacemacs already has prefix commands for controlling windows.
These are directly available in exwm-state as well as in exwm-insert-state
through leader

* remove most keybindings as they are available directly in exwm-state

* enable exwm directly in the layer configuration

It is safe to enable it here as an existing window manager will simply fail with
a warning.

* add user-configurable variables for RandR and workspaces

By default, create as many workspaces as there are displays and assign them in
RandR order.

* fix naming convention for variables

* use helm for launching applications when possible

* fix conditional helm-exwm leader keys

* remove redundant function

EXWM provides the equivalent

* conform to naming convention for Spacemacs

* separate prefix commands into those for major mode and global

* remove all default bindings

* improve readability

* clean up bindings

* remove obsolete comments

Co-authored-by: M. Domenzain <luis.domenzain@parrot.com>
2021-04-19 22:53:59 +02:00
Thanh Vuong 235aa8d44e [new layer] nav-flash
Ported from Doom
2021-04-19 22:25:40 +02:00
Maximilian Wolff 6a8dcd014e
[visual][popwin] Adjust variable naming to match conventions
Private variables must use "--" after the prefix.
2021-04-19 22:18:02 +02:00
Thanh Vuong b4cf004319
[visual][popwin] add keybiding to resume last popwin buffer
bind it to `spc r w`
2021-04-19 22:15:41 +02:00
Thanh Vuong 056eb6b91b
[defaults] add qickrun
bind it to `SPC x x`, not sure it's the right place but it's easy to invoke
2021-04-19 22:08:47 +02:00
Daniel Nicolai 866c362d06 configure racket-describe-mode keybindings
Racket describe mode comes with its own keybinding (i.e. `q` for quit).
Additionally it contains links, so this PR binds `o` to `link-hint-open-link`
(`ace-link` does not support this mode)
2021-04-19 21:43:17 +02:00
Daniel Nicolai 623c75d7d9 Fix: update eaf layer
The layer got broken due to some minor changes in the eaf package by the eaf
developers. This commit fixes the layer to a working state.
2021-04-19 21:40:59 +02:00
Lucius Hu 3bbc7a7d40
core-customization: improved SAFE variable handling (#14679)
* core-customization: improved SAFE variable handling

- SAFE can either be a function or t.
  - When it's t, use a default validation function
    `(lambda (val) (validate-value val TYPE t))`
  - When it's a function, use the supplied function.

* Fixed bugs in go and groovy layer

In almost any cases, it's better to supply `t` instead of a function, to
`SAFE` argument of `spacemacs|defc`.

For example,
```elisp
 (spacemacs|defc go-use-gocheck-for-testing nil
   "If using gocheck for testing when running the tests -check.f will be used instead of -run to specify the test that will be ran. Gocheck is mandatory for testing suites."
  'boolean nil #'booleanp)
```

If its value is nil, it evaluate to `nil`, which means that `nil` is not
a safe value for `go-use-gocheck-for-testing` local variable.

But clearly it is.

* core-customization: improved SAFE variable handling

- Added a function `spacemacs-customization//get-variable-validator`.
  This function is designed to be used with `safe-local-variable`
  property of spacemacs custom variables.
  See details in the docstring.

```elisp
(put 'FOO 'safe-local-variable
     (apply-partially 'spacemacs-customization//get-variable-validator
                      'FOO))
```

- This is better than a lambda since `apply-partially` returns a compiled
  function. (Though the performace gain may be tiny.)
- This is better than simply calling `validate-value`, because it returns
  nil when value is nil. But sometimes nil is a valid value.

Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2021-04-19 21:34:09 +02:00
Luis Ch 175840bc6e
react: fix file auto detection (#14680) 2021-04-19 17:26:19 +00:00
Sylvain Benner 4a1f0ae49f [python] Fix directory specific python-backend
With this fix it is now possible to select different backends in
different project using the directory variables mechanism of Emacs
(the file .dir-local.el)
2021-04-18 08:56:04 +02:00
Maximilian Wolff 247d059289
[go] Switch layer variables to defcustoms
and fix wrong declaration of go-mode hooks
2021-04-17 23:56:05 +02:00
Maximilian Wolff b3bf5c1fb4
[groovy] Fix wrong customization type 2021-04-17 23:13:48 +02:00
Lucius Hu bd3a7fb0b5
go: Fix local variables
- Labelled `go-backend` and `go-format-on-save` as safe local variable.
- Added local variable hooks of go mode:
  - `spacemacs//go-setup-backend`
  - `spacemacs//go-setup-eldoc`
  - `spacemacs//go-setup-format`

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-17 22:49:33 +02:00
Maximilian Wolff 8814329a11
[groovy] Replace defvar with spacemacs|defc
And extend spacemacs|defc to allow setting
a :safe directive.
2021-04-17 22:07:44 +02:00
Lucius Hu c83a9e76b3
groovy: Fix local vars
- Labelled `groovy-backend` as safe local variable.
- Added local variable hooks of groovy mode:
  - `spacemacs//groovy-setup-backend`
  - `spacemacs//groovy-setup-company`

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-17 21:02:22 +02:00
Maximilian Wolff c0525bed81 [eww] Change bindings to match its given category
Eww was wrongly classified as web-service.
It can now be found under tools hence the global
binding was changed from `SPC a w e` to
`SPC a t e`.

Also I have removed parts of the documentation
still refering to this layer not being part of
Spacemacs.
2021-04-17 14:42:25 +00:00
emacspace 9257aab154 documentation formatting: Sat Apr 17 07:08:57 UTC 2021 2021-04-17 11:32:54 +03:00
JAremko 2b92149386 Fix ewww docs 2021-04-17 10:05:33 +03:00
Maximilian Wolff bc713b1943 [eww] Fix some smaller issues in the new layer 2021-04-15 21:30:15 +00:00