Commit graph

4944 commits

Author SHA1 Message Date
leo3 8f4bfc79b2 Add layer music/pianobar 2020-02-27 21:53:37 -05:00
jaremko b83521edbb Add spacebind macro and tests for it 2020-02-27 21:48:40 -05:00
Gia Thanh Vuong a4459dd283
Layout transient state: make jump-to-last-layout exit state when done 2020-02-26 20:35:11 +01:00
emacspace 7536239f9e
documentation formatting: Wed Feb 26 16:43:02 UTC 2020 2020-02-26 19:14:35 +01:00
Lucius Hu 70efaaae59
[rust] Added key bindings for cargo-edit, cargo-audit and Clippy
This is a squashed commit it contains:
- Added new sections on `cargo-edit`, `cargo-audit`, and `Clippy`,
which are used for several key-bindings in this layer.
- Re-ordered the `Key bindings` section, added entries for new bidings,
and improved description.
- ~SPC m c a~ for =cargo add=
- ~SPC m c r~ for =cargo rm=
- ~SPC m c U~ for =cargo upgrade=
- ~SPC m c A~ for =cargo audit=
- ~SPC m c X~ is for =cargo run --bin= now, instead of =cargo run --example=,
which is bound to ~SPC m c E~
2020-02-26 16:40:12 +00:00
Maximilian Wolff 937ab01115
[slack] Bind slack-mode bindings also in slack-message-buffer-mode 2020-02-25 23:30:47 +01:00
syl20bnr 978be09f6b [base] Refactor keyboard macro key bindings 2020-02-23 09:42:20 -05:00
syl20bnr 93276e011a [emoji] Move spacemacs/delay-emoji-cheat-sheet-hook to func.el 2020-02-23 09:40:29 -05:00
Maximilian Wolff 5af37b3165
[c-c++] Fix wrong variable name in documentation 2020-02-23 10:05:22 +00:00
emacspace 546f626be9
documentation formatting: Sat Feb 22 10:39:46 UTC 2020 2020-02-22 11:44:35 +01:00
Maximilian Wolff fee257b46e
[sphinx] Restore document generation/cleaning feature and document config vars
I have noticed that most commands from the sphinx layer stopped working while
I was working on the restructured text layer.

This commit tries to jurry rig this package back into a working state.
It does not solve all issues we have in this package to do so a major
rewrite would be in order.

I have fixed:
- An endless loop caused by a failing search for a conf.py
- Fixed all compile commands
- Add a more detailed description of the meaning of the necessary config
variables in the doc.
2020-02-22 11:35:59 +01:00
Maximilian Wolff 4110b9d634
[sphinx] Fix typo in documentation 2020-02-22 00:47:37 +01:00
Maximilian Wolff 83b65be0b9
[sphinx] Improve documentation and add proper command prefixes 2020-02-22 00:45:20 +01:00
duianto dd8e611158
Replace obsolete lsp-prefer-flymake with lsp-diagnostic-package 2020-02-21 23:19:20 +01:00
Maximilian Wolff f03392573a
[javascript] Fix another broken link in the documentation 2020-02-20 23:55:42 +01:00
Maximilian Wolff 58f927714b
[javascript] Fix invalid link which broke doc generation 2020-02-20 23:42:20 +01:00
Maximilian Wolff 0bcfec3afb
[restructuredtext] Disable not working not maintained packages
This layer supported the very old linum and the non working
auto-complete-rst package. The later is not longer maintained
and does not work with up-to-date releases of sphinx causing

To fix the issue I have disabled `linum` and `auto-complete-rst`.
2020-02-20 23:30:59 +01:00
duianto b2f2952848
[pdf] Fix pdf-view-jump-to-register
pdf-view-mode being evilified caused:
' (single quote) to be bound to: image-scroll-up
2020-02-20 23:03:38 +01:00
Maximilian Wolff 21a6a32891
Revise additions to treemacs documentation
Move changelog entry to general documentation change block
Reformat the documentation to increase clarity
2020-02-20 22:06:15 +01:00
Anton Chevychalov 0728c5d02a
Add docs about ace mode in treemacs
There is a popular question about openning file in exact window.
There is an ace mode for that, but it is not so clear how to use
it for new users.

That commmit add information how to use ace mode and how tweak it
based on information from https://github.com/Alexander-Miller/treemacs/issues/266
2020-02-20 21:51:56 +01:00
Maximilian Wolff 903ad8a8e1
[sql] Revise sql-layer
Add installation instruction for `sqlfmt` executable
Adapt documentation to be more like the other layers
Replace wrong default sqlfmt parameter -u with --use-spaces
Make error buffers be reused by default to reduce memory consumption
Change prefix for repl keybindings to be conform with the other layers
Remove obsolete progn statement
2020-02-20 21:36:42 +01:00
Cate B c001159718
[sql] Add sqlfmt-region command, bindings; enhance customize options
Enhances `sqlfmt` support in SQL layer.

`sqlfmt` was only being applied against the whole buffer, and did not allow
invocation against a specific region in the buffer. `sqlfmt` customize options
were not included under the `sql` group. It was not possible to control if
`sqlfmt` reused an existing error buffer or generated new ones.

- Added `sqlfmt-region` interactive command and binding under `sql-mode` keymap
  - `sqlfmt-buffer` calls into `sqlfmt-region` with `(point-min)` and
    `(point-max`)

- Added `sqlfmt` customize group as child to `sql` customize group

- Added `sqlfmt-reuse-error-buffer` option

- Updated `sql` layer documentation to reflect changes
2020-02-20 21:10:34 +01:00
duianto 0a06c7ca6b Fix filenames in layer file headers
Also fixed the groovy/funcs.el header which said: Java
2020-02-20 00:07:30 +01:00
duianto f578e618a5
[nlinum] Show deprecation (Emacs 26.1+) warning on startup
The warning:
nlinum layer is deprecated for Emacs 26.1 and above
wasn't shown until SPC h SPC was pressed.

Because the variable: configuration-layer--used-layers
wasn't populated before the warning check occurred in
nlinum/packages.el.

The solution (suggested by syl20bnr) was to move the
check to a new file: nlinum/config.el.
2020-02-18 21:09:23 +01:00
Koray Al fbe6b907e2
[#13243] Fix keybinding issues with dropped notebook-multilang-mode
Also removed `ein:company-backend` during initialization since it does not exist
anymore.
2020-02-18 21:02:39 +01:00
Ignat Insarov d44522ee1d
Add a new binding for the Coq layer.
This binding toggles the electric terminator setting of Proof General.

Also describe the new binding in the README and add a note to the change
log.
2020-02-16 08:48:11 +00:00
Matthew Boston a844c06192 update link to plantuml reference guide 2020-02-15 17:19:03 +01:00
Steven Allen 36230346ea [eshell] Skip prompt text on insert
When entering insert mode, don't start editing in the middle of the prompt text.

That is, given:

~/foo/bar> some command
  ^            ^       ^
  A            B       C

Cursor A will jump to position C but cursor B won't.

Edit by duianto
This also stops the cursor from jumping to the end of the last line,
when entering insert state, from all but the last line in a multi line.

Example:
~/foo/bar>(+
1{cursor in normal state on the 1}
2)

Entering insert state: i

Before:
~/foo/bar>(+
1
2){cursor in insert state after the close parenthesis}

After:
~/foo/bar>(+
{cursor in insert state before the 1}1
2)
2020-02-14 13:09:29 +01:00
Lucius Hu 24d9c3f7ee
[rust] Add key binding to switch lsp rust server
`lsp-mode` supports two LSP server backend for Rust language, i.e.
`rls` and `rust-analyzer`.

`rust-analyzer` is experimental and lacks certain functionalities
such as `DAP` support.

`lsp-mode` provides a function `lsp-rust-switch-server` that changes
the priority of LSP server backend for *new* LSP session.

This commit adds a key binding `SPC m s s` to `lsp-rust-switch-server`.
2020-02-13 19:27:32 +00:00
Ben Swift dd9b40b235
[Markdown] add keybinding for markdown-insert-kbd
There's no keybinding for markdown-insert-kbd alongside all the other
markdown-insert-* keybindings, this patch adds one using the same
convention (specifically xk).
2020-02-13 18:35:07 +00:00
Bruno Morais 3d597d8ccc
[deft] Added zetteldeft support 2020-02-13 18:26:38 +00:00
Maximilian Wolff c9c5637ac6
[Haskell] Make installation instructions for hie more clear 2020-02-10 20:14:11 +00:00
Jee L 36ad2b28d2
[Python][LSP] Change mspyls publish directory according to system type 2020-02-10 19:45:46 +00:00
Thanh Vuong c1a518439c
toggle for doom-modeline package
even though we have a check if doom is actually set in
dotspacemacs-mode-line-theme in doom mode line init function. doom-modeline
still adds a bunch functions to hook `after-change-functions regardless of the
value of mode line theme name. Hence we need to put a toggle on the declaration
2020-02-08 09:22:21 +00:00
duianto 96438694f4
[base] Add cl- prefix to letf and letf*
The cl package has been deprecated.

It had aliases for cl- prefixed commands without the cl- prefix.
Ex: letf or letf* instead of cl-letf or cl-letf*

On the `spacemacs-base` distribution, with the `ivy` layer.
When one tries to search with `SPC /`
(which calls `spacemacs/counsel-search`)

Then this error message is shown:
>spacemacs/counsel-search: Symbol’s function definition is void: letf*

It doesn't happen with the `helm` layer,
because it's search commands already has the `cl-` prefix.

There are also three instances of: `letf`
in the `spacemacs-editing-visual` layers functions:
- `spacemacs/toggle-centered-buffer` (`SPC w c c`)
- `spacemacs/toggle-distraction-free` (`SPC w c C`)
- `spacemacs/centered-buffer-transient-state` (`SPC w c .`)

Without the `cl-` prefix they show the error message:
>Symbol’s function definition is void: letf
2020-02-08 09:17:52 +00:00
Steven Allen 2088eb67a9
[lsp] set jump handler per lsp-managed buffer
Previously, this would try to add the lsp jump handler to the mode's jump
handler list every time lsp started managing a buffer of that mode. Now, we only
use the lsp jump handler for buffers managed by lsp.
2020-02-08 09:08:37 +00:00
Benjamin Hipple 6781dfe157
[nixos] Update recommended method for disabling nixos-company-options
Per discussion in #13164, we have a standard, consistent technique for doing
this across any layer. Provided that `global-company-mode` is not set, this
works as expected to disable company without requiring custom variables.
2020-02-08 09:05:44 +00:00
Maximilian Wolff 539e954227
Fix R lsp company setup
Before ess layer was always using non lsp completions, this I have
corrected by conditionally set company-lsp or the standard ess backends.
2020-02-08 09:00:43 +00:00
Seong Yong-ju ee5a5e8b73
Add LSP backend support for R
Change some leader keys for Julia, R, Inferior. Remove noweb bindings for Julia
and R since it no longer works. Add LSP backend support for R.
2020-02-08 08:02:46 +00:00
wangtianshu 38a9f7c395 [auto-completion] Don't install company-statistics unless necessary 2020-02-07 20:14:37 +01:00
duianto 7b28e62fb0 [nlinum] Fix symbol name typo
Thanks bcc32
2020-02-03 21:37:00 +01:00
Maximilian Wolff f4f95d28fb
[syntax-checking] Add warning against using (global-flycheck-mode) 2020-02-02 00:57:39 +01:00
syl20bnr 51c7fb961b [default] Move ediff key bindings from SPC E to SPC D prefix
And add documentation
2020-02-01 16:27:44 -05:00
jr0cket 79842c89cf [Clojure] Sesman and missing eval / format keybindings
Added keybindings for the Sesman REPL session management commands to the Clojure
layer, following the Spacemacs keybinding conventions.
https://docs.cider.mx/cider/0.23/usage/managing_connections.html

Sesman has been a part of CIDER for many versions now and provides session
management for nREPL connections (in fact any connections).

Sesman keybinds are placed in the `SPC m c` menu, providing a cleaner separation
between sending code to the repl and session management.

See issue #12593 and PR #13140 which covers the background for the design of
these additional keybindings.

Formatting the region and defun keybinds have been added, along with formatting
for edn files.  Moved to `=` menu to match Spacemacs convention.

Evaluation up to point keybinding has also been added.

Documentation in the README has been updated to complete the description of the
existing Clojure layer, as well as including details specific to the new
keybindings.
2020-02-01 15:33:04 -05:00
syl20bnr f553b3622d Revert "[osx] use init instead of post-init for exec-path-from-shell."
This reverts commit 0141c804f0.

exec-path-from-shell is not used by Spacemacs anymore,
see https://develop.spacemacs.org/doc/DOCUMENTATION.html#default-behavior
2020-02-01 11:59:42 -05:00
syl20bnr 0a1c93c6a2 [auto-completion] Update README 2020-02-01 10:09:55 -05:00
Jonathan del Strother a549b9f3b6
Remove flow-type layer and add suggestions to use flow in javascript layer
It's largely (completely?) obsolete due to lsp support in the javascript layer
2020-02-01 09:33:46 +00:00
duianto f467e5c6d0
Add SPC x d l delete-blank-lines
Bind `SPC x d l` to `delete-blank-lines` (default: `C-x C-o`)

If the cursor is on a blank line:
- with blank lines above or below, then they are reduced to only one.
- without blank lines above or below, then the blank line is removed.
2020-02-01 08:59:55 +00:00
duianto 4b451a5fe3
Fix void destructuring-bind after cl pkg deprecation
destructuring-bind is a macro in the deprecated package: cl

SPC-TAB calls: spacemacs/alternate-buffer
In the spacemacs-base distribution, it shows the message:
spacemacs/alternate-buffer: Symbol’s function definition is void: destructuring-bind

Also renamed three instances of destructuring-bind in the rirc layer.
2020-02-01 08:47:55 +00:00
Benjamin Hipple 7ef83a4b59
[auto-completion] Update documentation on global-company-mode
Reword it to note that this is strongly discouraged, and include a link to the
layer opt-out mechanism that will be broken if this is enabled.

See comment here for details:
https://github.com/syl20bnr/spacemacs/pull/13164#issuecomment-578410362
2020-02-01 08:22:21 +00:00