Minor edits.

This commit is contained in:
Derek Taylor 2021-11-19 16:49:06 -06:00
parent 3456ed9a56
commit 00dc12759f
2 changed files with 10 additions and 6 deletions

View File

@ -872,11 +872,14 @@ Winner mode has been included with GNU Emacs since version 20. This is a global
Emacs provides a 'zap-to-char' command that kills from the current point to a character. It is bound to 'M-z' in standard GNU Emacs but since Doom Emacs uses 'SPC' as its leader key and does not have 'SPC z' binded to anything, it just makes since to use it for 'zap-to-char'. Note that 'zap-to-char' can be used with the universal argument 'SPC u' to modify its behavior. Examples of 'zap-to-char' usage are listed in the table below:
| KEYBINDING | WHAT IS DOES |
|------------------+-----------------------------------------------------------------|
| SPC z e | deletes all characters to the next occurrence of 'e' |
| SPC u 2 SPC z e | deletes all characters to the second occurrence of 'e' |
| SPC u - SPC z e | deletes all characters to the previous occurrence of 'e' |
| SPC u -2 SPC z e | deletes all characters to the fourth previous occurrence of 'e' |
|---------------------------+------------------------------------------------------------|
| SPC z e | deletes all chars to the next occurrence of 'e' |
| SPC u 2 SPC z e | deletes all chars to the second occurrence of 'e' |
| SPC u - SPC z e | deletes all chars to the previous occurrence of 'e' |
| SPC u -2 SPC z e | deletes all chars to the fourth previous occurrence of 'e' |
| SPC u 1 0 0 SPC u SPC z e | deletes all chars to the 100th occurrence of 'e' |
=TIP:= The universal argument (SPC u) can only take a single integer by default. If you need to use a multi-digit number (like 100 in the last example in the table above), then you must terminate the universal argument with another 'SPC u' after typing the number.
'zap-up-to-char' is an alternative command that does not zap the char specified. It is binded to 'SPC Z'. It can also be used in conjunction with the universal argument 'SPC u' in similar fashion to the the 'zap-to-char' examples above.

View File

@ -70,6 +70,7 @@
(package! ivy-posframe)
(package! mw-thesaurus)
(package! ox-gemini)
(package! pacmacs)
(package! peep-dired)
(package! password-store)
(package! rainbow-mode)