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.
This commit is contained in:
Keith Pinson 2020-08-04 10:05:24 -04:00 committed by Maximilian Wolff
parent 9d0174bd37
commit 286c71bd40
2 changed files with 4 additions and 0 deletions

View File

@ -514,6 +514,8 @@ Other:
terminal mode, but no longer in GUI mode. (emacs18)
*** Core changes
- Improvements:
- Bind ~SPC c n~ to ~:cn~ / ~next-error~ and ~SPC c N~ to ~:cN~ / ~previous-error~
(thanks to Keith Pinson)
- Display time spent in =user-config= in home buffer (thanks to Sylvain Benner)
- Added dotfile function =dotspacemacs/user-load= (thanks to Sylvain Benner)
- Added dotfile function =dotspacemacs/user-env= (thanks to Sylvain Benner)

View File

@ -441,6 +441,8 @@
"cC" 'compile
"ck" 'kill-compilation
"cr" 'recompile
"cn" 'next-error
"cN" 'previous-error
"cd" 'spacemacs/show-hide-compilation-window
"cb" 'spacemacs/switch-to-compilation-buffer)
(with-eval-after-load 'compile