Emacs: Xah Math Input Mode π¦
xah-math-input.el
is a emacs minor mode for inputting math symbols, emoji, or any Unicode characters.

Get it by Donation
Goto paypal.com, send $32 to Xah@XahLee.org (be sure to include your correct email address. I need that to send it to you.)
Write in message area: xah-math-input.el
How to Use
- Alt+x
global-xah-math-input-mode
- Toggle on/off for all buffers.
- Alt+x
xah-math-input-mode
- Toggle on/off for current buffer.
In lisp code for your emacs init file:
(global-xah-math-input-mode 1) ; turn on globally (global-xah-math-input-mode 0) ; turn off globally
Type inf
, then press Shift+Space, then it becomes β.
- a β Ξ±
- b β Ξ²
- p β Ο
- l β Ξ»
- g β Ξ³
- G β Ξ
- sum β β
- prod β β
- cp β β
- rt β β
- and β β§
- && β β§
- ne β β
- != β β
- /= β β
- ge β β₯
- >= β β₯
- to β β
- => β β
- -> β β
- R2 β βΒ²
- s2 β Β²
- sup2 β Β²
- ^2 β Β²
- _i β α΅’
- e' β Γ©
- e` β Γ¨
- e" β Γ«
- e^ β Γͺ
- n~ β Γ±
- deg β Β°
- heart β β₯
For the complete up-to-date list, Alt+x xah-math-input-list-math-symbols
The mode supports over 600 unique symbols, and you can add your own. Any unicode character, including emoji.
XML Abbreviations
All XML character entity abbrevs are supported. For example
copy
β Β©
γsee HTML XML Entitiesγ
Mathematica Abbrev
Most Mathematica's abbreviation is also supported. For example:
es
β β
Unicode by Decimal Number
Unicode by decimal can be entered like this:
945
β Ξ±
(Note: alpha has abbrev of βaβ. All Greek Alphabet has single letter abbrev.)
γsee Unicode: Greek Alphabet Ξ± Ξ² Ξ³ Ξ΄ Ξ΅ ΞΆ Ξ·γ
Unicode by Hexadecimal
Unicode by hexadecimal can be entered like this:
x3b1
β Ξ±u+3b1
β Ξ±
Customization
Change Activation Key
To change the activation key, put this in your Emacs Init File:
(require 'xah-math-input) (define-key xah-math-input-keymap (kbd "S-SPC") nil) ; unset Shift+space (define-key xah-math-input-keymap (kbd "<f8>") 'xah-math-input-change-to-symbol)
Add Abbrev, Add Symbol
To add/change a abbrev, Put this in your Emacs Init File:
(require 'xah-math-input) (puthash "floral" "β¦" xah-math-input-abrvs)
To find symbols, use Unicode Search π.
Get Unicode Font
For best result, you'll need a font that support Unicode. I recommend DejaVu Sans Mono. γsee Best Unicode Fonts for Programerγ
xah-math-input.el was named xmsi-mode.el