This is the home page for
xah-math-input. 〔old name: xmsi-mode〕
It is a Emacs minor mode for inputting math symbols or common Unicode characters.
Also on MELPA. http://melpa.org/#/xah-math-input. 〔➤ Emacs: How to Install Packages Using ELPA, MELPA, Marmalade〕
Requires Emacs 24.1 or later.
xah-math-input-mode to turn the mode on. Call it again to turn off.
inf, then press 【⇧ Shift+Space】, then it becomes ∞.
The abbreviations are based on HTML/XML entity names and Mathematica's 【Esc abbrev Esc】.
Here's a list of common characters the mode supports.
For the complete up-to-date list, call
The mode supports over 640 unique symbols. (Any other Unicode character can be entered by the character's unicode coidpoint in decimal or hexadecimal or by the character's Unicode name.)
All XML character entity abbrevs are supported. For example,
copy becomes ©.
〔➤ HTML Entities List〕
Most Mathematica's abbreviation is also supported. ⁖
es ⇒ ∅
Unicode by decimal can be entered like this:
945 ⇒ α.
(Note: alpha has abbrev of “a”. All Greek Alphabet has single letter abbrev.)
Unicode by hexadecimal can be entered like this:
x3b1 ⇒ α
Unicode by full name is also supported. For example, type “greek small letter alpha”, select the words, then press activation key, it'll become α.
You can also call emacs's
insert-char for name completion feature. (before emacs 24, the command name is
For example, call
ucs-insert 【Ctrl+x 8 Enter ↵】, then type
*arrow then Tab ↹, then emacs will list all Unicode Character names that has “arrow” in it. (this feature is part of Emacs 23)
To change the activation key, put this in your init:
(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)
To add/change a abbrev, put this in your init:
(require 'xah-math-input) (puthash "floral" "❦" xah-math-input-abrvs)
To find symbols, use Unicode Characters Search ☢ ☯ ☭ ∑ ∞ ♀ ♂ ♥.
For best result, you'll need a font that support Unicode. I recommend DejaVu Sans Mono. 〔➤ Best Unicode Fonts for Programing〕