Add documentation about evilifying 'special-mode buffers' (+fix eww)

This commit is contained in:
Daniel Nicolai 2021-09-16 11:24:28 +02:00 committed by Maxi Wolff
parent c8c20becf6
commit 2de0a10ae0
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
4 changed files with 10 additions and 0 deletions

View File

@ -805,6 +805,8 @@ Other:
section (thank to Daniel Nicolai)
- New function =spacemacs/inherit-leader-keys-from-parent-mode= to
inherit leader key bindings from another mode
- Evilify buffer with major-mode derived from =special-mode= by default
(thanks to Daniel Nicolai)
*** Distribution changes
- Refactored =spacemacs-bootstrap=, =spacemacs-ui=, and =spacemacs-ui-visual=
layers:

View File

@ -90,6 +90,10 @@ It is recommended to make sure that ~q~ allows to leave the transient-state.
/Evilifying/ a buffer is to set the =evilified state= as the default
state for the major mode of the buffer.
Except for =eww-mode= buffers, all buffers with major-modes derived from
=special-mode= are evilified by default. To exclude buffers of such major-modes
from getting evilified, add a regexp to =evil-buffer-regexps=.
The =evilified state= is derived from the =emacs state= and modify the
map to:
- add ~hjkl~ navigation

View File

@ -893,6 +893,9 @@ In addition to this, =C-g=, being an important escape key in Emacs, is skipped.
So anything bound to =g= originally will be found on =C-G=, since =g=, =G= and
=C-g= are all reserved.
Except for =eww-mode= buffers, all buffers with major modes derived from
=special-mode= are evilified by default.
** Evil leader
Spacemacs uses a leader key to bind almost all its key bindings.

View File

@ -31,6 +31,7 @@
(use-package eww
:defer t
:init
(add-to-list 'evil-buffer-regexps '("\\*eww\\*" . normal))
(spacemacs//eww-setup-transient-state)
(spacemacs/declare-prefix "awe" "eww")
(spacemacs/set-leader-keys "awee" 'eww)