summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-12-28 09:53:00 +0100
committerGravatar √Čtienne Deparis 2020-12-28 09:53:00 +0100
commit3bf5ced9f57381aafd608432feefc16e9604bf9d (patch)
treed5fac666a59bac8ff73d1f6d130889bdcfb2e1c8
parent65efbcace5f5c3330dba40081600b574ad52aec3 (diff)
downloademacs.d-3bf5ced9f57381aafd608432feefc16e9604bf9d.tar.gz
emacs.d-3bf5ced9f57381aafd608432feefc16e9604bf9d.tar.xz
emacs.d-3bf5ced9f57381aafd608432feefc16e9604bf9d.zip
Add a new keybinding for forward-whitespace
-rw-r--r--utils.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils.org b/utils.org
index b3ef7b0..e8ad9e6 100644
--- a/utils.org
+++ b/utils.org
@@ -662,6 +662,18 @@ Keybindings and mousebindings for /multi-cursors/.
(global-set-key (kbd "C-c m p") #'mc/mark-previous-like-this)
#+end_src
+Very often, when editing different lines in parallel, I would like to be able
+to quickly navigate to the next whitespace with the command
+~forward-whitespace~. Without it, the only thing I have is ~forward-word~,
+which does not do what I want as it stop at the first non-letter char. Thus I
+bind the previous to the new keybinding ~C-s-<right>~ as I want to keep the
+others. I have no need for a ~backward-whitespace~: if something goes wrong, I
+just have to go back to the beginning of the line and go forward again.
+
+#+begin_src emacs-lisp :tangle yes :exports code
+ (global-set-key (kbd "C-s-<right>") #'forward-whitespace)
+#+end_src
+
** Zoom in buffers with the mouse
And map the mouse wheel in order to zoom in buffer text.