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

Elisp: 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 Full-Width/Half-Width Punctuations

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 ♥

Put $5 at https://www.patreon.com/xahlee , or goto paypal.com and pay to Xah@XahLee.org . Message me on XahLee discord, say so, ask me questions.
Or Buy Xah Emacs Tutorial