Commit graph

665 commits

Author SHA1 Message Date
syl20bnr 82b2942cb7 [spaceline] Compile spaceline while dumping
And avoid compiling it when running from a dump.
2020-09-20 21:17:21 -04:00
Keith Pinson 255f50696c
[core] add keybinding hdT for describe-text-properties (#13962)
This is to bundle it with other describe functions.
2020-09-18 19:45:32 +02:00
Keith Pinson b83dd9c786
[core] Fix evil keybindings when a link is selected in Custom-mode (#13963)
* [core] Fix evil keybindings when a link is selected in Custom-mode

This uses a separate keymap bound directly to the widget and circumvents the
existing evil keybindings.

This fixes the bug found by @duianto, which he posted
[here](https://github.com/syl20bnr/spacemacs/pull/13949#issuecomment-694685304).

* [core] Fix q and u to work everywhere in a Custom-mode buffer
2020-09-18 19:36:40 +02:00
Maximilian Wolff 8dabfcd6c3
Revise evilification of Custom-mode
Load the respective package only if
vim or hybrid mode is used.

Format the source files and update
copy right header.
2020-09-16 21:26:27 +02:00
Keith Pinson 68debde4a2
[core] evilify Custom-mode if dotspacemacs-editing-style is 'vim
This has been requested many times but never implemented.

Fixes #6699
Fixes #5668
Fixes #7583
Fixes #13309
2020-09-16 21:16:23 +02:00
Maximilian Wolff 0284f80375
Revert "improves find-user-init-file"
This reverts commit c8b3e46ef8.

This change had negative side effects and
was therefore reverted. Please see #13933
for details.
2020-09-14 20:07:05 +02:00
Christian Bäuerlein dcb3a60564 Update spacemacs-org README on bullet library
In 1451268757 org-bullets has been replaced with org-superstar, but this Readme was not updated.
2020-09-08 20:46:04 +02:00
Ag Ibragimov c8b3e46ef8 improves find-user-init-file
<SPC f e i> should work with Emacs profile switcher plexus/chemacs
2020-09-04 22:43:16 +02:00
syl20bnr 39df5e26b6 [editing] Add qwerty-ca-fr layout to evil-swap-keys config 2020-08-21 17:35:24 -04:00
syl20bnr d19af574b9 [editing] Fix use-package invocation for evil-swap-keys 2020-08-21 17:27:26 -04:00
Maximilian Wolff 346be150f9
[core] Replace snoopy with evil-swap-keys and simplify setup
See #9316 for the discussion.
2020-08-18 00:08:01 +02:00
Codruț Constantin Gușoi 3216aedb27 Better UX for opening and copying links 2020-08-13 22:17:36 +02:00
Maximilian Wolff 793898f818
[core] Move snoopy mode to spacemacs-editing layer 2020-08-11 00:05:40 +02:00
Keith Pinson 286c71bd40 feat: mnemonic, ergonomic keybindings for next-error, previous-error
When Spacemacs' fancy logic works well, it is breathtaking. Sometimes, however,
you may need a way to reach in for something a little more raw: in this case,
going straight to `next-error` rather than `spacemacs/next-error`.

I chose `cn`/`cN` because:

* They seem to be unused thus far
* It makes sense to put these keybinding under compile, since they are
  associated with Emac's base functionality for compilation.
* The analogous Ex commands are `:cn` and `:cN`. They work this way even in
  Spacemacs (but I am trying to wean myself off Ex mode, since I see the
  Spacemacs keybindings as far superior most scenarios).
* `cp` was already taken, so `cN` had to be used for going back.

Fixes #13815.
2020-08-07 22:21:47 +02:00
Maximilian Wolff a45c2ce7d5
[core] Revise fixed M-x binding
After the latest change the list of bindings
has been changed to a dynamic form which
is not only slow but very hard to maintain.

I have replaced the list with the original one
and replaced the fixed line with backquote notation
to keep it static.
2020-07-18 09:56:54 +02:00
hackartist 0e3065af92
[core] M-x prefix was fixed
* Issue
* It could not correctly bind a prefix.
* where `dotspacemacs-emacs-command-key` is modified,
* it continuously binds a `M-x` prefix to `SPC`
* `SPC` always looks as `M-x`

* Solution
* `SPC`, hard coded `string`, was modified to `dotspacemacs-emacs-command-key`

* Expectation
* When a `SPC` prefix is bound, it should be displayed as the registered name.
2020-07-18 09:53:01 +02:00
Loys Ollivier d0bfc51c7e
visual: apply ansi color only on compilation major mode
Some modes have compilation-mode as parent mode but the ansi coloring
scheme is breaking their highlighting.
i.e. https://github.com/Wilfred/ag.el/issues/124

Fix this by applying ansi-colors only when the major mode is
compilation-mode.

Signed-off-by: Loys Ollivier <loys.ollivier@gmail.com>
2020-07-18 09:47:34 +02:00
Maximilian Wolff ac3752ffd7
Add missing prefixes to global application bindings 2020-07-06 23:13:52 +02:00
Ivan Yonchovski 7a107e65d2
Make spacemacs/useful-buffer-p much faster
- `with-current-buffer` triggers a lot of hooks.
2020-07-05 22:28:47 +02:00
John Practicalli Stevenson 92c010a207 [applications] refactor key bindings to layer categories
refactor key bindings for applications to provide additional room for
applications and use lower case characters.

Move calc-dispatch to `SPC a *`

Relates to #13503
2020-07-02 23:43:19 +02:00
emacspace 89b265e779 documentation formatting: Wed Jul 1 19:13:36 UTC 2020 2020-07-01 21:23:53 +02:00
Maximilian Wolff c663420399
[purpose] Remove hack to load user purposes from layers
User purposes are exclusively for user configs.
Layers shall set purpose extensions instead to allow
reconfiguration.

The existing layers have been refactored to use
extensions now. So this kind of hack is not longer
needed.
2020-06-28 00:05:26 +02:00
Maximilian Wolff c4e420cf36
[purpose] Document how to properly declare and overwrite purposes
Also refactor purpose config in shell layer to
use the correct `post-init-window-purpose`
function.
2020-06-26 01:10:17 +02:00
Aaron L. Zeng e9157a5607 [spacemacs-layouts] Fix return value of rename-buffer
spacemacs//fixup-window-configs is added as an `:around` advice for
`rename-buffer`.  It should preserve `rename-buffer`'s return value,
which is the new name of the buffer.
2020-06-25 17:39:19 +02:00
John Practicalli Stevenson e38c33feb0 [applications] refactor key bindings to tools
refactor key bindings for packages under +layers/tools

Relates to #13503
2020-06-24 22:43:30 +02:00
Tomasz Kowal 80f17249e9 Fix origami bindings in normal mode 2020-06-21 17:08:47 +02:00
Richard Kim ae971d7878 replaced one do with cl-do and position with cl-position 2020-06-20 22:46:09 +02:00
Thanh Vuong 1451268757 [org] replace org-bullets with org-superstar
org-bullets has been deprecated
2020-06-07 18:18:21 +02:00
Tomasz Kowal 8e4bd9a8a1 Move folding bindings to evil motion state map 2020-06-07 18:16:46 +02:00
Thanh Vuong b071baf256 [layout] fix persp-mode integration with helm v3.3
Helm v3.3 no longer uses ido to get buffer list. So the change perp-mode makes
to ido won't affect helm anymore. Hence helm buffer list commands such as
helm-mini and helm-buffer-list will shows all buffers regardless of current
layout. Also `SPC l l` crashes with new helm.

This PR fixes them. We use the new helm variable helm-buffer-list-reorder-fn
to filter buffers. Because we compose this value users are still able to
customize this variable.
2020-06-07 18:14:24 +02:00
CeleritasCelery 6fa6b66b75 Add functions to make variables layout local 2020-05-11 14:49:02 +02:00
Maximilian Wolff 5e037c8890
[core] Move easy pg bindings from SPC a e to SPC a Y
The global bindings for easy pg clash with the evernote layer.
Therefore I have moved it to SPC a Y instead.
2020-04-18 00:51:41 +02:00
Hans Jang 397b21e4f1
Replace close-compilation-window with show-hide-compilation-window 2020-04-16 23:22:24 +02:00
Ivan Yonchovski fb870e84a5 [defaults] Added shortcut to switch to last compilation buffer 2020-04-16 21:54:53 +02:00
Ivan Yonchovski 8fe8f76cd6 [dap] Provide global keybindings for dap-mode
- added the same bindings you normally have under `SPC m d` under `SPC d`
similar to what Debug layer does. Most of the dap-bindings are not content
sensitive(e. g. rerun last debug session) and it doesn't make sense to restrict
them only to particular major modes.
- Moved `spacemacs/browse-docs-online-at-point` from `SPC d b` to `SPC h b d` to
avoid collisions.
2020-04-16 21:52:18 +02:00
Ivan Yonchovski 0ae8b2712a [visual] Pin dap debug buffers to the bottom
- reuse the botom window for all windows that are in compilation mode and in
dap-server-log-mode. Without this change you will get two windows on top of each
other when you do `SPC c c` and then `SPC m d d d`
2020-04-16 21:34:41 +02:00
Ivan Yonchovski 9f75a65398 [defaults] Add function+shortcut for copy buffer name 2020-04-16 21:32:25 +02:00
emacspace 2ca55e28e3 documentation formatting: Fri Apr 3 15:55:27 UTC 2020 2020-04-03 18:02:51 +02:00
John Practicalli Stevenson 415b5fb8ba [spacemacs-layouts] update readme with config and keybindings
Add layer variable documentation for persp-autokill-buffer-on-remove
Set to kill-weak, then buffers are deleted when the layout is deleted.
https://github.com/Bad-ptr/persp-mode.el#suggested-configuration

Add usage section
- describe the core usage of layouts

Add keybindings section
- include all keybindings for the layer

Fix formatting
- = instead of ~ and vice versa

Resolve #11698
2020-04-03 17:48:58 +02:00
John Practicalli Stevenson 1055baafa2 [easypg] keybindings using spacebind
Add keybindings for the built in Emacs application called Easy PG, that provides
tools to encrypt/decrypt/sign/verify files and regions using PGP encryption.

Keybindings are defined using spacebind.

Resolve #13319
2020-04-03 17:43:20 +02:00
Maximilian Wolff 463bbd5361
[layouts] Bind e to select a layout position dynamically 2020-03-31 21:31:50 +02:00
Matt Kramer f1e2d974ed
Make spacemacs/open-junk-file create junk directory and fix counsel issues
This is a squash commit including below commits

Add dotspacemacs--pretty-ignore-subdirs

Within the specified subdirs of `dotspacemacs-start-dir`,
spacemacs/prettify-org-buffer (and hence space-doc-mode) will not be called.
Without this variable, using spacemacs/open-junk-file to create an Org file will
result in prettification, which is not necessarily the desired behavior.

Call make-directory in spacemacs/open-junk-file

This imitates the behavior of open-junk-file.

Prevent spacemacs/open-junk-file from getting confused by Dired

If we're in a dired buffer, counsel-find-file will ignore
current-directory (i.e. junk-dir) and use (dired-current-directory) instead. We
fool Counsel by shadowing major-mode to nil.

Update CHANGELOG.develop re spacemacs/open-junk-file
2020-03-21 20:52:21 +01:00
Daniel Nicolai c6fbf09855 fix issue #13395
Ivy-hydra is autoloaded so the require statement here is unnecessary. Because this require (commented out) statement was here before I uncommented it in the last PR (#13377), I leave it here (commented out) as it was before that PR.
2020-03-21 20:34:18 +01:00
Muneeb Shaikh bb8ec23ec1 [themes][keybindings] Use apt completion framework for loading theme
Theme transient state key-binding `t` is broken if `ivy` completion framework is
used. The binding unconditionally invokes `helm-themes`.

This change adds a new function which takes care of invoking correct
theme-loader function based on completion framework currently in use.

The old binding used `helm-themes` but the new function uses already defined
`spacemacs/helm-themes` which removes the number of candidates limit.
2020-03-19 10:48:59 +01:00
Daniel Nicolai 2049817b12
[ivy] Replace custom hydra-menu by original hydra-menu 2020-03-17 09:51:12 +01:00
Maximilian Wolff 2e0f4acad5
Make view-mode closable with q in evil
View-mode was not properly evilified which prevented evil users
from closing it with q. This is now globally fixed not only for
`notmuch-mode`.
2020-03-17 09:21:02 +01:00
Maximilian Wolff c7af787257
Add setting to dotfile to deactivate clean-aindent-mode
There have been complains about issues with `clean-aindent-mode` from
multiple users. For some of these deactivating the mode in their user-init
did not work as intended. Therefore I have added a setting for it in the
dotfile.
2020-03-13 19:00:48 +01:00
lin.sun fbe8fba836
[spacemacs-language] Improve google-translate user experience 2020-03-12 21:23:09 +01:00
bb2020 e5e3617bdd
add spacemacs/kill-back-to-indentation 2020-03-08 11:51:18 +01:00
Juan Edi 82fc458df3
Do not reverse search direction after highlighting
Before this, `evil-ex-search-direction` would be left set to 'backward after:

  - entering symbol highlight transient state mode (SPC s h)
  - exiting the transient state

That means that pressing 'n' would go to the previous result instead of the next one.
2020-03-08 11:34:21 +01:00