Variable: autoarg-mode-map

autoarg-mode-map is a variable defined in autoarg.el.gz.

Value

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

Documentation

Keymap for Autoarg mode.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/autoarg.el.gz
;;; autoarg.el --- make digit keys supply prefix args -*- lexical-binding: t -*-

;; Copyright (C) 1998, 2000-2024 Free Software Foundation, Inc.

;; Author:  Dave Love <fx@gnu.org>
;; Created: 1998-09-04
;; Keywords: abbrev, emulations
;; Obsolete-since: 29.1

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;; This provides `autoarg-mode', a global minor mode meant to emulate
;; a facility reported from Twenex Emacs whereby digit keys supplied
;; prefix args rather than self inserting, with a digit sequence
;; terminated by space acting to insert the digits.

;; The bindings of DIGIT and C-DIGIT are swapped and a command bound
;; to SPC deals with a numeric prefix arg or acts normally without
;; such an arg.  (In the absence of a suitable terminal, you'd
;; probably want to swap DIGIT and M-DIGIT.)  See the mode doc.

;; You probably don't really want to use this.

;; Also provides `autoarg-kp-mode' which is similar, but leaves the
;; digit keys alone and redefines the `keypad' keys, `kp-1' &c as
;; digit arguments.  (Use `NumLock' if necessary to generate kp-N.)
;; You're more likely to want to use this.

;;; Code:

(defvar autoarg-mode-map
  (let ((map (make-sparse-keymap)))
    ;; Loop over digit characters to set up keymap.
    (dotimes (i 10)
      (define-key map `[,(+ ?0 i)] 'digit-argument)
      (define-key map `[(control ,(+ ?0 i))] 'self-insert-command))
    (define-key map " " 'autoarg-terminate)
    map)
  "Keymap for Autoarg mode.")