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.el Multi-Pair Find Replace.

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 () {} [] in Region

Convert Punctuation Between English/Chinese Forms

Emacs: Convert English/Chinese Punctuations

Convert Latin Alphabet to Unicode Gothic-style Characters

𝔗𝔥𝔬𝔲 𝔖𝔥𝔞𝔩𝔱 𝔘𝔰𝔢 𝔈𝔪𝔞𝔠𝔰 𝔏𝔦𝔰𝔭 Convert Latin Alphabet 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: Lines to HTML Table.

Emacs ♥

Like it? Buy Xah Emacs Tutorial. Thanks.

or, buy something from Best Keyboard for Emacs