Commit graph

11814 commits

Author SHA1 Message Date
Lucius Hu
96008496d6 windows-scripts: replaced dos.el with bat-mode, added bmx-mode
- Replaced `dos.el` with `bat-mode`
  - `dos.el` is superseded by `bat-mode`
  - `dos.el` is localised package
  - `bat-mode` is a built-in mode
- Added `bmx-mode`
  - `bmx-mode` provided syntax highlighting, code-navigation and refactoring
    capabilities on top of `bat-mode`
2021-04-09 20:08:55 +00:00
Lucius Hu
49d1eaed50 rust and lsp: better integration of lsp-rust-analyzer-reload-workspace
- Introduced a new command cargo-process-outdated
- Certain commands are known to change Cargo.toml and needs to reload workspace,
  wrapper functions that automatically reload workspace are added.
  - spacemacs/cargo-process-add
  - spacemacs/cargo-process-rm
  - spacemacs/cargo-process-outdated
- Added a layer variable for rust layer, cargo-process-reload-on-modify,
  which toggle the aforementioned behaviour.
- Added a new utility function in LSP layer, which returns server ID associated
  with current project.
  - spacemacs//lsp-client-server-id
- Rearranged keybindings for rust layers (see table below for details)

Commands wrapped with auto-reload functionality:

|Command                  |Binding      |
|-------------------------|-------------|
|`cargo-process-repeat`   |`SPC m c .`  |
|`cargo-process-add`      |`SPC m c a`  |
|`cargo-process-rm`       |`SPC m c r`  |
|`cargo-process-upgrade`  |`SPC m c U`  |

Commands with new bindings:

|Command                            |Old Binding |New Binding |
|-----------------------------------|------------|------------|
|`cargo-process-search`             |`SPC m c s` |`SPC m c /` |
|`cargo-process-fmt`                |`SPC m c f` |`SPC m c =` |
|`cargo-process-current-file-tests` |`SPC m c o` |`SPC m t b` |
|`cargo-process-current-test`       |`SPC m c t` |`SPC m t t` |
|`cargo-process-test`               |`SPC m t`   |`SPC m t a` |
2021-04-09 21:56:22 +02:00
Daniel Nicolai
0570e14144
Add docs agenda usage recommendations (#14587)
* Point org-journal to dalanicolai's fork (temporarily)

The Spacemacs for using org-journal are written, assuming that some PR's by
dalanicolai get merged. As the merge takes more time than expected, we
temporarily point Spacemacs to use his fork.

Additionally, a subsequent commit that adds agenda usage recommendations also
assumes these org-journal PR's got merged.

* Add to docs agenda usage recommendations

The Emacs documentation is not very clear about the best way to use org-agenda,
especially regarding integration of the diary into org. This commit adds most
sensible configuration recommendations.

- fix/improve docs for org-wild-notifier
- document how to use agenda (recommendations)
2021-04-09 21:44:19 +02:00
emacspace
95a703b684 documentation formatting: Fri Apr 9 11:56:19 UTC 2021 2021-04-09 21:41:03 +02:00
duianto
ef1ad4ecee Check package updates from Spacemacs home buffer
problem:
`SPC f e U` checks if packages have updates.
But if the current buffer isn't the Spacemacs home buffer,
then the minibuffer just shows:
>Do you want to update 1 package(s)? (y or n)

There's no information about which packages have updates.

Canceling the prompt with: `n`
and switching to the messages buffer `SPC b m`, does list them.
>(Spacemacs) --> Found 1 package(s) to update:
>
>(Spacemacs) dap-mode

But it doesn't work to switch to the home buffer,
because that information was erased when the home buffer was refreshed.

solution:
Switch to the home buffer before checking for updates.
2021-04-09 21:40:19 +02:00
Benjamin Sorenson
d2b7399958 Fix bug in spacemacs//python-setup-backend () 2021-04-09 21:39:07 +02:00
duianto
291cf9d671 CONTRIBUTING.org, Fix typos, etc. 2021-04-09 13:49:06 +02:00
duianto
4dc1d7640a [defaults] Add dotspacemacs-scroll-bar-while-scrolling 2021-04-08 21:09:54 +00:00
syl20bnr
811001a48c [defaults] Show scroll bar when using the mouse wheel
Thanks to duianto
2021-04-08 21:08:35 +00:00
syl20bnr
01a84d9fe8 [defaults] Improve scrolling with mouse wheel
Thanks to Profpatsch.

Fixes https://github.com/syl20bnr/spacemacs/issues/1781
2021-04-08 21:06:46 +00:00
pataquets
948d15a272 Search Engine layer: Add Debian & Ubuntu package search. 2021-04-08 22:55:03 +02:00
Maximilian Wolff
9eac85fb6c [git] Add magit-todo to evil-collection configured packages
thanks goes to duianto for suggesting this move.
2021-04-08 20:46:39 +00:00
Lucius Hu
dfb4c1c4cb git: Added magit-todos, improved docs, etc.
- Added `magit-todos` package, toggled by `git-enable-magit-todos-plugin`.
- Improved installation and loading of all magit-plugins:
  - All magit plugins are toggled by their corresponding layer variables
    PRE-INSTALLATION, instead of PRE-LOADING. That is, they are installed
    only when the toggle is non nil.
  - The `use-package` call is more specific now.
    - Hooks goes to `:hook`.
    - Removed `:defer` since it's implied by `:hook`, and it's actually not
      doing anything.
- Improved the documentation.
2021-04-08 20:41:24 +00:00
duianto
d012d2d95f [dotfile] New var: dotspacemacs-startup-buffer-multi-digit-delay
It sets the minimum delay in seconds between number key presses.
On the Spacemacs home buffer.
2021-04-08 22:27:54 +02:00
Sylvain Benner
9c7e4bd5f1
[init] Disable GUI elements in early-init as well (#14559)
* [init] Disable GUI elements in early-init as well

Can provide a smoother startup by reducing graphical artifacts.

* [core] Add file for early-init functions

Needed to make the tests to work as early-init.el is not sourced
during tests.

Fixes error:

   Symbol’s function definition is void: spacemacs/removes-gui-elements
2021-04-08 22:25:14 +02:00
Maximilian Wolff
910f68b59e [defaults] Document new keybindings 2021-04-08 20:15:17 +00:00
syl20bnr
e6e58c54d6 [defaults] Add SPC f e I to open Emacs early-init.el file 2021-04-08 20:12:51 +00:00
Julien Debon
e817e0faae
[Python layer] Add links to the LSP implementations (#14562)
* [Python layer] Document Nix + Microsoft LSP

* Document how to make Nix + Microsoft LSP work
* Add links to Microsoft LSP and Pyright repos

* Remove nix part
2021-04-08 22:10:33 +02:00
Maximilian Wolff
38f582d785 [bootstrap] Fix depreciation warning for pcase `t case
and add first usage for reference
2021-04-08 19:43:30 +00:00
Lucius Hu
4836a2569b bootstrap: new :spacediminish keyword to use-package
Added a new keyword to `use-package`, `:spacediminish` which calls
`spacemacs|diminish`.

Supported patterns:
- nil
- SYMBOL
- STRING
- (SYMBOL STRING)
- (STRING STRING)
- (SYMBOL STRING STRING)
- List of patterns above

When `SYMBOL` is missing, it's inferred from the package name, e.g
`(use-package foo :spacediminish nil)` becomes
`(use-package foo :spacediminish foo-mode)`.

This PR aims to replace explict calls to `spacemacs|diminish` and brings more
declarative flavour to layer configuration.

For example, the following form

```elisp
(use-package highlight-indentation
  :config
  (progn
    (spacemacs|diminish highlight-indentation-mode " ⓗi" " hi")
    (spacemacs|diminish
     highlight-indentation-current-column-mode " ⓗc" " hc")))

```
can be replaced by

```elisp
(use-package highlight-indentation
  :spacediminish ((" ⓗi" " hi")
                  (highlight-indentation-current-column-mode " ⓗc" " hc")))
```
2021-04-08 19:08:13 +00:00
Aaron L. Zeng
57f6a2d94d [finance] Enable flycheck when syntax-checking-enable-by-default 2021-04-08 20:57:33 +02:00
emacspace
383237ef29 Built-in files auto-update: Thu Apr 8 18:27:04 UTC 2021 2021-04-08 20:48:26 +02:00
Maximilian Wolff
5fd1976e05 [org] Fix startup and document key bindings
When org-roam support was not on startup
of emacs was broken due to referencing
an unbound variable.

Also added the new bindings to the
docs.
2021-04-08 18:43:15 +00:00
Kjartan Óli Ágústsson
d77e76e9f7 Add support for the org-roam-server package
Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
2021-04-08 18:29:22 +00:00
Friends A
07970be51d docs: fix ‘gzip-for-windows’ link error 2021-04-08 20:25:24 +02:00
JAremko
3371a8220c [CI]use comment based PR rebase 2021-04-06 20:19:10 +03:00
JAremko
ee63894aeb [CI]try fixing rebase workflow X2 2021-04-06 19:49:16 +03:00
JAremko
eb38394fd8 [CI]try fixing rebase workflow 2021-04-06 19:35:44 +03:00
JAremko
ee6d410f11 [CI]rebase PRs on develop push 2021-04-06 19:30:51 +03:00
emacspace
eec5ba6577
[bot] Auto-update (#14573)
* documentation formatting: Mon Apr 5 20:50:44 UTC 2021

* Built-in files auto-update: Mon Apr 5 20:49:17 UTC 2021
2021-04-05 23:19:49 +02:00
inwit
e7234782ec Fixed a bug in notmuch-tree which was preventing d/D bindings to work 2021-04-05 23:17:52 +02:00
Maximilian Wolff
564f41be91 [pocket] Change tag from reader to web service
As it is just an interface to an online service
rather than an application able to read from
local files.
2021-04-05 20:46:42 +00:00
Aaron L. Zeng
ac5fc0ac19 [pocket] Add pocket layer 2021-04-05 20:38:09 +00:00
Lucius Hu
b0dc044885 fixup! purescript: refactor 2021-04-05 22:33:26 +02:00
Lucius Hu
29da12e1b8 Update file header in CONTRIBUTING.org 2021-04-05 22:27:11 +02:00
Lucius Hu
80674b837d fixup! terraform: refactor 2021-04-05 19:13:14 +02:00
Lucius Hu
2e4e2eacbc fixup! cmake: refactor 2021-04-05 19:06:16 +02:00
Lucius Hu
5d39ffe98b fixup! fixup! perl5: refactor 2021-04-05 12:11:42 +02:00
Lucius Hu
145f469ec1 fixup! nim: refactor 2021-04-05 11:56:28 +02:00
Lucius Hu
79952251b4 fixup! lua: refactor 2021-04-05 11:47:53 +02:00
Lucius Hu
a03585c4b5 fixup! latex: refactor 2021-04-05 11:36:54 +02:00
Lucius Hu
65f24d40d0 fixup! elm: refactor 2021-04-05 11:32:15 +02:00
JAremko
df8249a052 [CI]add deps install retry 2021-04-05 06:27:36 +03:00
JAremko
2fdce1ea9c [CI]remove rave wf 2021-04-05 06:27:36 +03:00
Lucius Hu
fc30320ec6 fixup! spacemacs-editing: refactor 2021-04-04 22:24:05 +02:00
German Lashevich
97a238f429 Fix packages missed in Melpa 2021-04-04 22:14:05 +02:00
Lucius Hu
f7c2ce8fb6 fixup! python: refactor 2021-04-04 21:23:01 +02:00
Lucius Hu
9115fd9824 react: minor change
This amended commit 58243c67f8

There is an unnecessary `when-let*` form, and it's replaced by `when`.
2021-04-04 19:40:53 +02:00
Lucius Hu
5e641394f4 fixup! c-c++: refactor
This reverts commit e62d55b4fd.

This fixs https://github.com/syl20bnr/spacemacs/pull/14509#issuecomment-813023508
2021-04-04 19:21:46 +02:00
Lucius Hu
6e3ee5ae16 fixup! haskell: refactor 2021-04-04 19:00:40 +02:00