Commit Graph

6376 Commits

Author SHA1 Message Date
Ralph Landon c821b660c3 Add `shell-scripts-shfmt-args` variable
This adds a variable to the `shell-scripts` layer to allow passing
arguments through to the `shfmt` package.
2022-10-19 21:42:43 +02:00
rommeswi b9a52ccad3
Create visual selection from transient paste (#15745)
* create visual selection from transient paste

Improve "Pasting Transient State" by adding a shortcut C-v to generate a visual selection from pasted test.

* Remove unnecessary lambda expression
2022-10-19 20:49:08 +02:00
Joshua Wood 33743922eb Add support for multi-vterm 2022-10-19 20:35:27 +02:00
Lin Sun b5e75bc65f layers/+filetree/treemacs: fix the document for key bindings 2022-10-19 20:34:56 +02:00
Lin Sun 95c66b9010 layers/+completion/helm: use default helm fuzzy function, not depend on the helm-flx 2022-10-19 20:16:17 +02:00
Lin Sun ce0878c353 layers/+spacemacs/spacemacs-editing: mark the string-edit to be :defer 2022-10-18 17:32:02 +02:00
Lin Sun d2ca781a8d spacemacs-modeline: do not dependent on the neotree 2022-10-18 17:26:50 +02:00
Daniel Nicolai 264a8ffc20
refactor: improve pdf-tools selection (PR #15740) (#15762) 2022-10-05 21:45:40 +00:00
Irsyad Asyhari Lubis fe01603df9
feat: add consult-imenu for Java LSP (#15758) 2022-10-05 18:21:01 +00:00
Rodrigo Kassick 58c56f8066 fix: fix code-cells-mode setup to avoid undefined symbol errors on define-key
Commit 54f12b66f correctly moved code-cells setup to use-package's :init to
ensure that python-mode had a hook for code-cells-mode -- otherwise, code-cells
would never be loaded automatically with python major mode.

A side-effect of this change was that now there was a minor mode keymap for
`code-cells-mode` , which may not have been loaded unless emacs has already
opened a python file.

When calling `describe-key` , the function `help--binding-locus` would iterate
over `minor-mode-map-alist` and, when it reached the entry for code-cells-mode,
a call to `(symbol-value 'code-cells-mode)` would fail with a `void-variable`
error. Despite `code-cells-mode` being an auto-loadeable symbol, `symbol-balue` would not trigger the autoload.

The solution (as pointed by @sunlin7) was to call `add-hook` on `:init` and
`spacemacs/set-leader-keys-for-minor-mode` on `:config`
2022-09-23 15:26:58 +02:00
Maxi Wolff 3370a45e11
Update nyan cat package to be compatible with emacs 29 2022-09-17 20:52:01 +02:00
Daniel Nicolai 9cdf97f87e
Fix PR #15736 (#15740) 2022-09-16 02:38:49 -04:00
Maxi Wolff 54f12b66f0
Revise latest code-cells-mode fix
Reaction to comment on e74610ddb5
2022-09-15 17:39:00 +02:00
Daniel Nicolai 438fceea88 Fix cumbersome pdf-tools selection behavior
Currently, due to evil entering visual state, the selection behavior in
pdf-tools is different from and more cumbersome than in vanilla Emacs (see
https://github.com/emacs-evil/evil/issues/1671).

This commit prevents evil from entering evil-state in pdf-mode and moves the
(only) visual-state yank binding to the evilified-map.

It doesn't look pretty, but it is working much better than before.
2022-09-15 16:40:24 +02:00
Codruț Constantin Gușoi c1ef3c3f66
Suppress native compilation *Warnings* buffer (#15732) 2022-09-12 03:26:51 -04:00
Richard Kim acab040c72
do not add org-roam-setup to after-init-hook (#15725) 2022-09-06 14:27:50 -04:00
Jen-Chieh Shen 756ffc5c00
chore(ts-fold): Update repo link for ts-fold module (#15719) 2022-09-02 04:37:35 -04:00
Atemu 201d22bcc9 compleseus: use the correct predicate for minibuffer hjkl bindings
https://github.com/syl20bnr/spacemacs/pull/15710 confused
hybrid-style-enable-evilified-state and hybrid-style-enable-hjkl-bindings
2022-08-29 14:18:29 +02:00
Atemu d6c3482663
compleseus: disable ido and respect minibuffer binds evilification setting (#15710)
* compleseus: disable ido-mode when vertico and selectrum are used

ido would inject inself instead of the regular `find-file' but if these are
activated, we actually want the regular `find-file'.

* core: provide minibuffer evilification predicate

Many different layers need to decide whether to evilify their minibuffer maps.
Provide a single function that puts the logic in one place.

* compleseus: only evilify minibuffer binds when desired
2022-08-27 10:46:04 +02:00
Alfonso Montero 99eb20e13c
Docker: Followup for #15414: fix bindings not loading, add docs (#15707)
* [docker] Followup for #15414: Fix bindings not being added, add docs.

* [docker] Wrap `:config` block in a `progn`, as per CONVENTIONS.org.

* [docker] Fix key binding in documentation.

Co-authored-by: Tommi Komulainen <tkomulai+github@gmail.com>

Co-authored-by: Tommi Komulainen <tkomulai+github@gmail.com>
2022-08-27 10:42:12 +02:00
Cédric M. Campos 244b8a8cb9
Removes references to the github layer (#15709) 2022-08-25 12:01:09 -04:00
Alfonso Montero b86b881b53
search-engine: Add Docker Hub image search engine. (#15706) 2022-08-19 14:56:05 -04:00
Lucius Hu f63d3c41b0
spacemacs-editing-visual: fix term-cursor logic
As reported in comment of PR #15680, it should be enabled in non graphical usage.
2022-08-16 19:46:27 +00:00
Elliott Shugerman eb809cc61c
vagrant | use 'vagrant-tramp-shell if 'shell-default-shell is 'shell (#15701) 2022-08-14 15:10:15 -04:00
iliekprogrammar 4c027d0abf
[evil] restore original evil-lion bindings as defaults. (#15684) 2022-08-09 17:36:31 +02:00
Richard Kim 6415adea49 Fixed #15583 and also bound SPC T g to toggle gui elements 2022-08-09 17:33:14 +02:00
Lucius Hu eef9f4ed7f
plantuml: minor clean up
This commit removes the unnecessary check on `spacemacs-indent-sensitive-modes` variable,
which is defined in `spacemacs-default` layer.
2022-08-06 22:19:26 +00:00
Lucius Hu 4f6413e82f
fixup! unicode fonts: multiple improvements 2022-08-06 01:22:57 -04:00
SpacemacsBot f452ff28b8
[bot] "documentation_updates" Fri Aug 5 21:31:39 UTC 2022 (#15682) 2022-08-05 18:48:29 -04:00
Diego Caples e7b871147f Added documentation to set julia envornment location for lsp server
lsp-julia-default-envornment is set by default to ~/.julia/environments/v1.0 .
To make the lsp server show completions for installed packages, the environment
location must be the same as that of the installed julia version enviornment.
Documentation was added to notify users to set the emacs variable to their
enviornment location.
2022-08-05 23:30:23 +02:00
Lucius Hu 7d60d894a7
updated COPYRIGHT 2022-08-05 04:10:26 -04:00
Lucius Hu 2ec9614d5e
spacemacs-editing-visual: fix #15667 2022-08-05 00:34:53 -04:00
SpacemacsBot 4f5fddc96d
[bot] documentation_updates (#15679)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-08-05 04:24:35 +00:00
Lucius Hu 37bad602e2
unicode fonts: multiple improvements
- Removed unnecessary package `persistent-soft`. This is never actually used by
Spacemacs. And it's automatically installed as a dependancy package of
unicode-fonts anyway.
- Properly use `use-package` to initiate `ligature` package.
- Improved README.org and config.el.
2022-08-05 00:11:56 -04:00
SpacemacsBot a99d90b31f
[bot] documentation_updates (#15676)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-08-04 22:54:54 +00:00
Lucius Hu 7706f0ffd2
helm: remove unnecessary setting on xref-show-xrefs-function
For `helm` users, we set `xref-show-xrefs-function` according to Emacs version.
This is a two-fold unnecessity:
- We now only support Emacs version > 27, so `hellm-xref-show-xrefs` should not
be used anyway.
- `hem-xref` already set this variable according to Emacs version. See
[here][ref].

This commit removes this.

ref: ea0e4ed8a9/helm-xref.el (L192-L197)
2022-08-04 18:50:26 -04:00
Lucius Hu a611a602c0
parinfer: cleaning up
- Updated layer README.org to include prerequisites
- Removed unnecessary layer config variables which are mere re-naming
  of customization variables from `parinfer-rust-mode`.
- Removed the image.
2022-08-04 18:32:27 -04:00
SpacemacsBot fcf3aa7c9e [bot] "documentation_updates" Sun Jul 31 15:33:44 UTC 2022 2022-07-31 17:35:17 +02:00
Maxi Wolff 61785c073c
[docker] Make sure to prefix compile commands for lsp bindings 2022-07-31 17:30:39 +02:00
Maxi Wolff 4c9cd947a0
Remove depreciated github layer
and ignore flycheck_packages temp files
2022-07-31 17:26:07 +02:00
Alfonso Montero 84d0bb3c4f
Improve Docker layer 'dockerfile-mode' major mode keybindings (#15414)
* [completion] Fix readme markup.

* [docker] Improve keybindings: save keystrokes and add convenience shortcuts.

* [docker] Remove duplicate bindings.
2022-07-31 17:25:45 +02:00
Maxi Wolff b994a520e3
[translate] Make sure that go-translate is loaded after posframe 2022-07-31 16:26:11 +02:00
Ray Wang 43f24dfc9c
[dap] move posframe package into spacemacs-visual layer
1. move posframe package into spacemacs-visual layer for package sharing
2. add `pre-int-posframe` and `post-init-posframe` for further configurations

Rebase to the latest code and remove posframe from translate layer

[translate] allow user to customize renders
2022-07-31 16:09:20 +02:00
Maxi Wolff ca728d278b
Fix double ownership of posframe package
each package can only be owned by one layer
in this case it's dap layer's package.

translate layer only uses pre-init stuff.
2022-07-31 16:01:12 +02:00
Maxi Wolff d49e7a35c1
Reformat and change new binding to be consistent with upstream
See #15637
2022-07-31 15:56:51 +02:00
Gunnar Bastkowski e348e4cda4
Add keybinding for projectile-run-project (#15637) 2022-07-31 15:53:25 +02:00
SpacemacsBot 13cb1e0f12
[bot] documentation_updates (#15666)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-07-26 06:56:44 +00:00
Lucius Hu 90f01114d2
nav-flash: clean up
Removed the setting on `nav-flash-face` to `:extend t`
because this is the default.
2022-07-26 02:55:32 -04:00
Lucius Hu 8e3686d254
nav-flash: better mechanism on determining last point before blink
This is ported from Doom Emacs.
2022-07-26 02:53:40 -04:00
Lucius Hu fdfd9f1457
nav-flash: fix #15617
based on ff58823d48
2022-07-26 02:43:44 -04:00
Lucius Hu ef912d7e7a
nav-layer: add credit section to layer documentation 2022-07-26 02:43:09 -04:00
SpacemacsBot e1f844a852
[bot] "documentation_updates" Mon Jul 25 18:38:07 UTC 2022 (#15663) 2022-07-25 14:53:53 -04:00
Michael Bauer c5330deb69
Update README.org (#15657) 2022-07-25 18:37:01 +00:00
Bai, Yang a1f82b7367
[major-modes] move gemini-mode source to MELPA (#15656) 2022-07-22 03:23:13 -04:00
Thanh c49e80d794 Revert "[spacemacs-bootstrap] Remove whitespace from kill ring. (#15634)"
This reverts commit 91af298090.

it breaks (kill-whole-line) `kill-whole-line` (C-S <backspace>)

the SO link mentioned in it got 0 point.
and hack like this can be put it to user's own config.
2022-07-21 08:57:45 +02:00
thanhvg 5dc773e90f
[compleseus] fix hack for company-capf (#15652) 2022-07-20 23:58:12 -04:00
SpacemacsBot ba33309327
[bot] "documentation_updates" Fri Jul 15 20:49:15 UTC 2022 (#15647) 2022-07-15 20:51:09 +00:00
Skylar Hill 4055e49b25 [major-modes] Add Gemtext support 2022-07-15 22:48:28 +02:00
Richard Kim e13e8d7b54 Enable tws mode also in text-mode in addition to prog-mode. 2022-07-15 22:47:16 +02:00
Thanh 4357030100 [compleseus] improve M-n 2022-07-15 22:41:05 +02:00
thanhvg 58f021b3f3
[compleseus] work with tramp (#15639)
make tramp completion work and layout recognize remote project.
2022-07-15 20:26:09 +00:00
Ben 91af298090
[spacemacs-bootstrap] Remove whitespace from kill ring. (#15634)
When `dotspacemacs-enable-paste-transient-state` is on, there exists a minor
annoyance that deleted whitespaces appear in the kill ring. This requires an
extra C-j/C-k to bypass the noise.

This commit uses a advice function to `kill-new` to prevent text with only
whitespaces from entering kill ring.

Credit: https://stackoverflow.com/questions/12102554/emacs-skip-whitespace-kills

Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-07-15 20:22:19 +00:00
SpacemacsBot 8041d8a349
[bot] documentation_updates (#15646)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-07-15 19:51:39 +00:00
Ben aee4fa85d5
Undo-region: more ergonomic keybindings (#15631) 2022-07-15 19:26:28 +00:00
SpacemacsBot 598065e6bd
[bot] documentation_updates (#15645)
Co-authored-by: SpacemacsBot <not@an.actual.email.beep.boop>
2022-07-15 08:08:46 +00:00
Lucius Hu a6ae2f6a7c
nav-flash: Added new layer variable and other changes
- Added a new layer variable `nav-flash-exclude-modes` which tells
`nav-flash/blink-cursor-maybe` not to trigger when the major mode matches one of
its elements.
- Expanded the documentation.
- Tidying up.
2022-07-15 04:01:34 -04:00
Lucius Hu 7b7b7e7b6b
fixup! syntax-checking: Improved documentation and clean-ups 2022-07-15 01:26:36 -04:00
Lucius Hu e13c5c7147
syntax-checking: Improved documentation and clean-ups 2022-07-14 23:26:24 -04:00
Lucius Hu 67bb7e69ec
syntax-checking: improved layer documentation
This commit contains adjustment to layer documentatin.

Specifically it added more information on key bindings in
`flycheck-error-list-mode` and adjusted the order of a few sections.
2022-07-14 04:17:45 -04:00
Lucius Hu 5ce944a1da
syntax-highlighting: improved docs on pop window configuratin
This commit improved both the layer documentation of pop window configuration
and docstring of relavant layer variables.
2022-07-14 03:53:10 -04:00
Lucius Hu 016e2638f0
syntax-highlighting: changed flycheck-error-list-mode keymap
- Removed redundant keybinding for `RET`, which is already defined in
`flycheck`.
- Added two keybindings to move the focus to next/previous line without also
viewing the corresponding error in the other window.
2022-07-14 03:31:59 -04:00
Lucius Hu 5d3820a1e5
syntax-checking: fixed flycheck error list popwin config
Due to an error of argument order, `syntax-checking--buffer-config` was not
declared correctly and the setting is not respected by `popwin`.

This commit fixed that.
2022-07-14 03:29:35 -04:00
Lucius Hu 57d7cfee5c
syntax-checking: added support for margin indicator
Before this commit, users are not informed of the option to use margins, in
addition to fringes, to display flycheck indicators. This commit provides
clearer information on customizing this. Specifically:

- Added instruction on how to change the location of flycheck indicator.
- Added a new layer variable `syntax-checking-indication-symbol` which allows
  customization for symbol used for flycheck indication.
- Deprecated the layer variable `syntax-checking-use-original-bitmaps` in favour
  of `syntax-checking-indication-symbol`, because the latter allows a finer
  control of both fringe bitmap and margin string.
2022-07-14 02:08:01 -04:00
Lucius Hu 09698dc8fa
syntax-checking: add binding for `flycheck-disable-checker` 2022-07-13 18:12:01 -04:00
Lucius Hu 35cf3df3dc
import-js: replace `if` w/ `when` 2022-07-13 18:04:04 -04:00
Lucius Hu 4636672203
syntax-checking: prevent changing window when quitting error list
When toggling off flycheck's error list window, it calls `quit-window` which
might also change the focus to another window.

Wrapping this form `save-selected-window` ensures the focus always returns to
where toggling command is first invoked.
2022-07-13 17:39:40 -04:00
Lucius Hu 99933b1fb3
spacemacs-editing-visual: enable term-cursor
`term-cursor` was added to provide configurable cursor shape and colour when
Emacs is running in a terminal. Originally, it would not be enabled when the
user is using `evil` editing style, as `evil-terminal-cursor-changer` seems to
be a better alternative.

As explained in commit #d48bc8d9 `evil-terminal-cursor-changer` has buggy
behaviours and was removed. This commit therefore enables `term-cursor` for all
editing styles in terminal Emacs.
2022-07-12 23:27:29 -04:00
Lucius Hu d48bc8d90b
remove evil-terminal-cursor-changer
This package was added years ago but promptly removed due too buggy behaviours
with certain terminal and OS combination.

This commit entirely removed this package since there has been no update from
the upstream for years.
2022-07-12 23:24:22 -04:00
Nathanael Schweers 1435c95a79 Fix a previous attempted fix loading mu4e.
mu version 1.8.2 renamed mu-meta to mu-config.  As the variable mu4e-mu-version
is defined in said file the easiest fix seems to be to simply attempt to load
the new one, and only if that fails to load the old version.

Maybe this can be reworked or better yet removed in the future.
2022-07-02 18:41:54 +02:00
Thanh Vuong d059c4c0b2 [evil] bring back vi-tilde-fringe
https://github.com/syl20bnr/spacemacs/issues/15622
Revert "Delete vim-empty-lines layer and merge its code into spacemacs-evil"

This reverts commit ebd920e23a.
2022-07-01 16:05:23 +02:00
Thanh Vuong f3c73178ba [lsp] update consult-lsp init 2022-07-01 16:02:23 +02:00
Thanh Vuong b4d84a4e1a [editing] lazy binding for string-edit-mode 2022-07-01 16:01:54 +02:00
Nathanael Schweers 0ce1201a3e Use a different require on newer mu versions. 2022-07-01 15:58:11 +02:00
Tim Ruffing c9db028421 [defaults] Exclude `custom-file` correctly in recentf
Entries of recentf-exclude must be expanded, e.g., `~` for the home
directory won't work.
2022-06-25 08:57:50 +02:00
Aaron L. Zeng af53045448 [git] Remove magit-git-executable hack, which is no longer needed
magit v3.2.0 now defines `magit-git-executable` as a
function (actually a defsubst), and two separate variables,
`magit-git-executable` and `magit-remote-git-executable`.  On darwin,
magit already sets `magit-git-executable` to the result of
`(executable-find "git")`, so having this is now redundant in
Spacemacs.
2022-06-25 08:56:33 +02:00
Aaron L. Zeng 4eaff25268 [git] Disable evil-surround-mode in all magit modes
This is an extension of #15462.  I noticed that the fix did not apply
to magit-diff buffers, which still had the issue of `s' not being
available to stage diff hunks.  `magit-diff-mode' is the parent mode
of all magit modes, in which evil-surround is not useful, so disabling
there makes the most sense.
2022-06-23 13:36:20 +02:00
Aaron L. Zeng 48a8599cbe [finance] Fix void-variable ledger-report-mode-map 2022-06-23 13:34:36 +02:00
Lin Sun e74610ddb5 [python] fix config issue for native-comp 2022-06-20 13:14:01 +02:00
Maxi Wolff cb09f57cf7
Revise vim-empty-lines integration into spacemacs-evil
Removing any non clarified changes on defaults
and key bindings.
2022-06-19 20:30:59 +02:00
Ray Wang ebd920e23a
Delete vim-empty-lines layer and merge its code into spacemacs-evil
1. Delete vim-empty-lines layer and merge its code into spacemacs-evil
2. Remove unused function from spacemacs-evil/funcs.el
3. Add variable dotspacemacs-evil-show-empty-line-indicators to toggle vim-empty-lines-mode
4. Update related documents
5. Compatibilities
2022-06-19 20:25:37 +02:00
Maxi Wolff ee95121e6b
[helm] Fix dangerous implementation for helm-use-fuzzy
This variable caused Spacemacs to set all helm sources
to use fuzzy matching independently of whether this
was supported by the source.

This handling was very dangerous as using fuzzy for an
incompatible source can have all kind of side effects
causing unique bugs which will never be fixed by the
source package authors.

Therefore I have changed the implementation to
activate fuzzy matching via helm variables instead,
which should make sure we only activate this for
compatible sources.

If sources are found which do not longer do
fuzzy matching, the individual source should be
improved to support this feature and declare it's
compatibility towards helm.

We cannot fix helm in Spacemacs, instead the respective
package must be patched. Everything else is a maintenance
nightmare!

Fixes #15124
2022-06-19 19:43:04 +02:00
SpacemacsBot 9c44ecf13c [bot] "documentation_updates" Fri Jun 17 15:35:54 UTC 2022 2022-06-17 18:39:57 +02:00
Maxi Wolff 8eb1ebfa6b
[go] Fix issues in README 2022-06-17 17:34:00 +02:00
Maxi Wolff 07a0881324
[go] Revise support for multiple dap integrations 2022-06-17 17:26:35 +02:00
Alfonso Fernando Álvarez 03f0ce75f7
go: add variable to allow selection of new dap-dlv-mode
go: fixed added documentation on new variable
2022-06-17 16:38:17 +02:00
Maxi Wolff 44894c7132
[git] Fix forge warning
by setting forge-add-default-bindings to nil
by default.
2022-06-17 16:30:26 +02:00
Maxi Wolff e75e925e37
Second try to fix restart-emacs in emacs 29
We need to remove the defer keyword for this fix
to work.

See #15505 and #15524 for details.
2022-06-12 09:22:22 +02:00
Maxi Wolff c41bb1406b
Try to fix name clash in emacs 29
This work around is taken from dalanicolai's comment on #15505.
It tries to circumvent a name clash between the emacs package
"restart-emacs" and emacs 29 which introduced a function called
"restart-emacs".

The workaround is to load the package after the emacs file
module has been loaded.
2022-06-11 14:24:24 +02:00
SpacemacsBot 44a032b615 [bot] "documentation_updates" Sat Jun 11 11:42:05 UTC 2022 2022-06-11 13:47:31 +02:00
Tim Ruffing 2556ecd31c [doc] shell-scripts: explain backend auto-select 2022-06-11 13:47:01 +02:00