Emacs Lisp Find Replace String-Pairs Commands

By Xah Lee. Date: . Last updated: .

This page shows examples of multi-pair find replace in emacs lisp.

You need the elisp library xah-replace-pairs.el at Emacs: Xah Replace Pairs, xah-replace-pairs.el.

CSS Compressor

Emacs: CSS Compressor

Escape/UnEscape Backslash

These are very useful when you do text processing in emacs lisp. For example, if you need to process HTML, just copy raw HTML text, paste in emacs, then press a button to escape quote characters, and now you are ready to put them inside elisp string.

Emacs: Escape Quotes Command

TeX Math Symbols to Unicode

Emacs: Replace Greek Letter Names to Unicode

Curly Quote Fixes

The following is useful when you want to normalize the style of punctuation in essay or novel.

Emacs: Convert Straight/Curly Quotes

Emacs Lisp: Convert Unicode Chars to ASCII

Emacs: Remove Accent Marks

Change {Round, Square, Curly} Brackets

Emacs: Change Brackets/Quotes 🚀

Convert Punctuation Between English/Chinese Forms

Emacs: Convert Chinese/Japanese Punctuations Full-Width/Half-Width

Convert Latin Alphabet to Unicode Gothic-style Characters

Emacs: Latin to Gothic (𝔤𝔬𝔱𝔥𝔦𝔠)

Make HTML Table

Another different use, but essentially same technique of find replace, is to convert a plain text table into a HTML table. See: Emacs: HTML, Lines to Table.

Emacs ♥