Function: autoarg-mode
autoarg-mode is an interactive and byte-compiled function defined in
autoarg.el.gz.
Signature
(autoarg-mode &optional ARG)
Documentation
Toggle Autoarg mode, a global minor mode.
In Autoarg mode, digits are bound to digit-argument, i.e. they
supply prefix arguments as C-DIGIT and M-DIGIT normally do.
Furthermore, C-DIGIT inserts DIGIT.
SPC (autoarg-terminate) terminates the prefix sequence and inserts
the digits of the autoarg sequence into the buffer.
Without a numeric prefix arg, the normal binding of SPC (autoarg-terminate)
is invoked, i.e. what it would be with Autoarg mode off.
For example:
6 9 SPC (autoarg-terminate) inserts 69 into the buffer, as does C-6 C-9.
6 9 a inserts 69 as into the buffer.
6 9 SPC (autoarg-terminate) SPC (autoarg-terminate) inserts 69 into the buffer and
then invokes the normal binding of SPC (autoarg-terminate).
C-u (universal-argument) SPC (autoarg-terminate) invokes the normal binding of SPC (autoarg-terminate) four times.
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
C-0 self-insert-command
C-1 self-insert-command
C-2 self-insert-command
C-3 self-insert-command
C-4 self-insert-command
C-5 self-insert-command
C-6 self-insert-command
C-7 self-insert-command
C-8 self-insert-command
C-9 self-insert-command
SPC autoarg-terminate
This is a global minor mode. If called interactively, toggle the
Autoarg mode mode. If the prefix argument is positive, enable the
mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=autoarg-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/autoarg.el.gz
;;;###autoload
(define-minor-mode autoarg-mode
"Toggle Autoarg mode, a global minor mode.
\\<autoarg-mode-map>
In Autoarg mode, digits are bound to `digit-argument', i.e. they
supply prefix arguments as C-DIGIT and M-DIGIT normally do.
Furthermore, C-DIGIT inserts DIGIT.
\\[autoarg-terminate] terminates the prefix sequence and inserts
the digits of the autoarg sequence into the buffer.
Without a numeric prefix arg, the normal binding of \\[autoarg-terminate]
is invoked, i.e. what it would be with Autoarg mode off.
For example:
`6 9 \\[autoarg-terminate]' inserts `69' into the buffer, as does `C-6 C-9'.
`6 9 a' inserts 69 `a's into the buffer.
`6 9 \\[autoarg-terminate] \\[autoarg-terminate]' inserts `69' into the buffer and
then invokes the normal binding of \\[autoarg-terminate].
`\\[universal-argument] \\[autoarg-terminate]' invokes the normal binding of \\[autoarg-terminate] four times.
\\{autoarg-mode-map}"
:lighter" Aarg" :global t :group 'keyboard)