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

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: 𝔗ℌ𝔒𝔘 𝔖ℌ𝔄𝔏𝔗 𝔈𝔐𝔄ℭ𝔖

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 ♥

Patreon me $5 patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs

If you have a question, put $5 at patreon and message me.