Emacs Unicode Math Symbols Input Mode (xmsi-mode)

Buy Xah Emacs Tutorial. Master emacs benefits for life.
, , …,

This is the home page for xmsi-mode xmsi-math-symbols-input.el. It is a Emacs minor mode for inputting math symbols or common Unicode characters.

latest version v1.6.1, .

Usage and Features

Call xmsi-mode to turn the mode on. Call it again to turn off.

Type inf, then press 【⇧ Shift+Space】, then it becomes . Here's some other examples:

abbrevsymbol
aα
bβ
pπ
lλ
gγ
GΓ
sum
prod
c+
rt
and
!=
>=
=>
->
R2ℝ²
^2²
_i
e'é
e`è
e"ë
e^ê
n~ñ
deg°
heart

The abbreviations are based on HTML/XML entity names and Mathematica's 【Esc ‹abbrev› Esc】.

Supported Symbols

Here's a list of common characters the mode supports.

For the complete up-to-date list, call xmsi-list-math-symbols.

The mode supports over 640 unique symbols. (Any other character in Unicode can be entered by the character's unicode coidpoint in decimal or hexadecimal or by the character's Unicode name.)

XML Abbreviations

All XML character entity abbrevs are supported. For example, copy becomes ©. 〔➤ HTML Entities List

Mathematica Abbrev

Most Mathematica's abbreviation is also supported. ⁖ es

Unicode by Decimal Number

Unicode by decimal can be entered like this: 945α.

Unicode by Hexadecimal

Unicode by hexadecimal can be entered like this: x3b1α

Unicode Character by Name

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 ucs-insert for name completion feature. For example, call ucs-insertCtrl+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)

Customization

Change Activation Key

To change the activation key, put this in your init:

(require 'xmsi-math-symbols-input)
(define-key xmsi-keymap (kbd "S-SPC") nil) ; unset Shift+space
(define-key xmsi-keymap (kbd "<f12>") 'xmsi-change-to-symbol)

Adding a Abbrev

To add a abbrev, put this in your init:

(require 'xmsi-math-symbols-input)
(puthash "floral" "❦" xmsi-abrvs)

Get Unicode Font

For best result, you'll need a font that support Unicode. I recommend DejaVu Sans Mono. 〔➤ Best Unicode Fonts for Programing

Also, you should be using Emacs 23 or later, because it has a new Unicode engine and font engine that supports operating system's fonts.

Buy xmsi-mode Now

Download the mode for $5. Use the paypal button below. In the comment field, put “emacs math symbol input mode”. I'll email you the download link. Make sure your email address is included and correct.

Like it?
Buy Xah Emacs Tutorial
or share
blog comments powered by Disqus