File: calculator.el.html
A calculator for Emacs.
Why should you reach for your mouse to get xcalc (calc.exe, gcalc or whatever), when you have Emacs running already?
You can bind this to a key by adding this to your Init file:
(keymap-global-set "C-<return>" #'calculator)
Written by Eli Barzilay, eli@barzilay.org
Defined variables (41)
calculator-2s-complement | If non-nil, show negative numbers in 2s complement in radix modes. |
calculator-add-saved | Bound to t when a value should be added to the saved-list. |
calculator-bind-escape | If non-nil, set escape to exit the calculator. |
calculator-buffer | The current calculator buffer. |
calculator-char-radix | A table to convert input characters to corresponding radix symbols. |
calculator-copy-displayer | If non-nil, this is any value that can be used for |
calculator-curnum | Current number being entered (as a string). |
calculator-deg | Non-nil if trig functions operate on degrees instead of radians. |
calculator-display-fragile | When non-nil, we see something that the next digit should replace. |
calculator-displayer | A displayer specification for numerical values. |
calculator-displayers | A list of displayers. |
calculator-electric-mode | Run ‘calculator’ electrically, in the echo area. |
calculator-eng-extra | Internal value used by ‘calculator-eng-display’. |
calculator-eng-tmp-show | Internal value used by ‘calculator-eng-display’. |
calculator-initial-operators | A list of initial operators. |
calculator-input-radix | The mode for input, one of: nil (decimal), ‘bin’, ‘oct’ or ‘hex’. |
calculator-last-opXY | The last binary operation and its arguments. |
calculator-menu | Calculator menu. |
calculator-mode-abbrev-table | Abbrev table for ‘calculator-mode’. |
calculator-mode-hook | List of hook functions for ‘calculator-mode’ to run. |
calculator-mode-map | The calculator key map. |
calculator-mode-syntax-table | Syntax table for ‘calculator-mode’. |
calculator-number-digits | The calculator’s number of digits used for standard display. |
calculator-operators | The calculator operators, each a list with: |
calculator-output-radix | The mode for display, one of: nil (decimal), ‘bin’, ‘oct’ or ‘hex’. |
calculator-paste-decimals | If non-nil, convert pasted integers so they have a decimal point. |
calculator-prompt | The prompt used by the Emacs calculator. |
calculator-radix-grouping-digits | The number of digits used for grouping display in radix modes. |
calculator-radix-grouping-mode | Use digit grouping in radix output mode. |
calculator-radix-grouping-separator | The separator used in radix grouping display. |
calculator-registers | The association list of calculator register values. |
calculator-remove-zeros | Non-nil value means delete all redundant zero decimal digits. |
calculator-restart-other-mode | Used to hack restarting with the electric mode changed. |
calculator-saved-list | A list of saved values collected. |
calculator-saved-ptr | The pointer to the current saved number. |
calculator-stack | Stack contents -- operations and operands. |
calculator-stack-display | Cons of the stack and its string representation. |
calculator-unary-style | Value is either ‘prefix’ or ‘postfix’. |
calculator-use-menu | Make ‘calculator’ create a menu. |
calculator-user-operators | A list of additional operators. |
calculator-user-registers | An association list of user-defined register bindings. |