Variable: calculator-user-registers
calculator-user-registers is a customizable variable defined in
calculator.el.gz.
Value
nil
Documentation
An association list of user-defined register bindings.
Each element in this list is a list of a character and a number that will be stored in that character's register.
For example, use this to define the golden ratio number:
(setq calculator-user-registers '((?g . 1.61803398875)))
before you load calculator.
Source Code
;; Defined in /usr/src/emacs/lisp/calculator.el.gz
(defcustom calculator-user-registers nil
"An association list of user-defined register bindings.
Each element in this list is a list of a character and a number that
will be stored in that character's register.
For example, use this to define the golden ratio number:
(setq calculator-user-registers \\='((?g . 1.61803398875)))
before you load calculator."
:type '(repeat (cons character number))
:set (lambda (_ val)
(when (boundp 'calculator-registers)
(setq calculator-registers
(append val calculator-registers)))
(setq calculator-user-registers val)))