]> git.eshelyaron.com Git - emacs.git/commitdiff
Document :continue-only in use-package Info manual
authorPaul Nelson <ultrono@gmail.com>
Thu, 27 Feb 2025 09:30:13 +0000 (10:30 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Feb 2025 11:19:30 +0000 (12:19 +0100)
* doc/misc/use-package.texi (Binding to repeat-maps): Document
:continue-only (bug#74140).

(cherry picked from commit 3e1d7e0334d884a17887bd1b9ee6a9b9e3026a30)

doc/misc/use-package.texi

index 0ad74603cbc9953b699eafe0637e2e69e1cfc864..b31a09bbc2ce5be883378be095f060cc5d8fec43 100644 (file)
@@ -1162,6 +1162,35 @@ Specifying @code{:continue} @emph{forces} setting the
 @end group
 @end lisp
 
+@findex :continue-only@r{, inside} :repeat-map@r{ and} :bind
+@cindex binding commands that only continue repeat series
+Specifying @code{:continue-only} inside the scope of @code{:repeat-map}
+will make commands continue an active repeating sequence, but never
+initiate it.  This is done by setting the @code{repeat-continue}
+property of each command with the keymap, but not the @code{repeat-map}
+property.  This is useful for commands that should be available while
+repeating a sequence, but not initiate the repeat map themselves.
+Example:
+
+@lisp
+@group
+(use-package emacs
+  :bind
+  (:repeat-map
+   paragraph-repeat-map
+   ("@}" . forward-paragraph)
+   ("@{" . backward-paragraph)
+   ("]" . forward-paragraph)
+   ("[" . backward-paragraph)
+   :continue-only
+   ("h" . mark-paragraph)
+   ("w" . kill-region)
+   ("M-w" . kill-ring-save)
+   ("k" . kill-paragraph)
+   ("y" . yank)))
+@end group
+@end lisp
+
 @node Displaying keybindings
 @subsection Displaying personal keybindings
 @cindex display your keybindings