Variable: autoarg-kp-mode

autoarg-kp-mode is a customizable variable defined in autoarg.el.gz.

Value

nil

Documentation

Non-nil if Autoarg-Kp mode is enabled.

See the autoarg-kp-mode(var)/autoarg-kp-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function autoarg-kp-mode(var)/autoarg-kp-mode(fun).

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-kp-mode
  "Toggle Autoarg-KP mode, a global minor mode.

\\<autoarg-kp-mode-map>
This is similar to `autoarg-mode' but rebinds the keypad keys
`kp-1' etc. to supply digit arguments.

\\{autoarg-kp-mode-map}"
  :lighter " Aakp" :global t :group 'keyboard
  (if autoarg-kp-mode
      (dotimes (i 10)
	(let ((sym (intern (format "kp-%d" i))))
	  (define-key universal-argument-map (vector sym)
	    'autoarg-kp-digit-argument)))
    (dotimes (i 10)
      (let ((sym (intern (format "kp-%d" i))))
	(define-key universal-argument-map (vector sym) nil)))))