9e3fc598ad
Fixes https://github.com/syl20bnr/spacemacs/issues/15862 |
||
---|---|---|
.. | ||
local/spacemacs-whitespace-cleanup | ||
README.org | ||
funcs.el | ||
packages.el |
README.org
spacemacs-editing layer
Description
This layer adds packages to improve editing with Spacemacs.
Features:
- Support for automatic indentation of code via aggressive-indent">
aggressive-indent
. - Support for jumping to chars using a decision tree via avy">
avy
. - Improvements for evaluating sexps via eval-sexp-fu">
eval-sexp-fu
. - Selecting and editing of multiple text elements via expand-region">
expand-region
. - Support for editing files in hex format via hexl">
hexl
. - Deletion of consecutive horizontal whitespace with a single key
via hungry-delete">
hungry-delete
. - Support for selecting, copying and opening links using avy">
avy
via link-hint">link-hint
. - Adding of sample text via lorem-ipsum">
lorem-ipsum
. - Transient state for moving text via move-text">
move-text
. - Support for folding of code via origami">
origami
and evil-vimish-fold">evil-vimish-fold
. - Support for password generation via password-generator">
password-generator
. - Support for improving parenthesis handling via smartparens">
smartparens
. - Automatic whitespace cleanup on save via
spacemacs-whitespace-cleanup
. - Support for converting definitions to certain styles via string-inflection">
string-inflection
. - Support for generating UUIDs via uuidgen">
uuidgen
. - Support for conversion between Emacs regexps and PCRE regexps.
- Support for persistent scratch via persistent-scratch">
persistent-scratch
. - Support for unkillable scratch via unkillable-scratch">
unkillable-scratch
. - Support for sorting (press
s
) via dired-quick-sort">dired-quick-sort
- Support for evil-easymotion">
evil-easymotion
if the editing style isvim
orhybrid
. - Support for cycling between multi line block styles via multi-line">
multi-line
. - Support for editing strings inplace via string-edit">
string-edit
- Presents undo history as a tree via undo-tree">
undo-tree
Customization
Undo Region
In normal state, u
is bound to evil-undo
which undo changes in the buffer.
Emacs's builtin undo
command in addition has the ability to undo changes in a
selected region. But by default in visual state, u
is bound to evil-downcase
which downcases the selected text.
You can bound undo
to u
in visual state, by setting the variable
vim-style-enable-undo-region
to t
in your ~/.spacemacs
.
(setq-default dotspacemacs-configuration-layers
'((spacemacs-editing :variables
vim-style-enable-undo-region t)))