diff options
author | Tassilo Horn <tsdh@gnu.org> | 2022-05-12 23:24:47 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2022-05-16 08:33:15 +0200 |
commit | 42e4d6b8ce238507193a563730d25e1d96e2ad3d (patch) | |
tree | 12ad551750e47ce5bf5c19fcbdd94c361f1387b4 /lisp/emacs-lisp/pcase.el | |
parent | 1fc1d8b88994303ac7c1aac673cb3fead5ff4d9e (diff) | |
download | emacs-42e4d6b8ce238507193a563730d25e1d96e2ad3d.tar.gz emacs-42e4d6b8ce238507193a563730d25e1d96e2ad3d.tar.bz2 emacs-42e4d6b8ce238507193a563730d25e1d96e2ad3d.zip |
Improve cycle-spacing and bind it to M-SPC by default
* lisp/bindings.el (esc-map): Bind M-SPC to cycle-spacing instead of
just-one-space.
* lisp/simple.el (delete-space--internal): New function.
(delete-horizontal-space): Use it.
(delete-all-space): New command.
(just-one-space): Implement on its own instead of calling
cycle-spacing with a special flag.
(cycle-spacing--context): Make it a plist instead of a list. Adapt
docstring accordingly.
(cycle-spacing-actions): New user option.
(cycle-spacing): Rewrite so that it performs the actions in
cycle-spacing-actions instead of the hard-coded ones.
* doc/emacs/killing.texi (characters): Mention and add a variable
index entry for cycle-spacing-actions.
* etc/NEWS: Document that M-SPC is now cycle-spacing instead of
just-one-space.
Diffstat (limited to 'lisp/emacs-lisp/pcase.el')
0 files changed, 0 insertions, 0 deletions