Emacs Lisp Examples
This chapter is collection of simple emacs lisp examples. They are great for studying elisp but also as practical useful commands.
Xah Talk Show 2022-09-28 emacs lisp. extract html links, insert to each page
Examples of Commands that Insert Text
Examples of Commands that Change Text Under Cursor
Text Transform Under Cursor
- Emacs Lisp: Calling Shell Command
- Emacs Lisp: Bionic Reading π
- Emacs Lisp: Convert Color Formats: RGB, HSL, HSV π
- Emacs Lisp: Convert Hexadecimal to Decimal π
Commands Do thing-at-point
- Emacs Lisp: Count Lines, Words, Chars
- Emacs Lisp: Python 2to3 Wrapper π
- Emacs Lisp: Refactoring, Move Code to Files π
- Emacs Lisp: Command to Update RSS/Atom Webfeed
- Emacs Lisp: Writing a Interactive Command to Update HTML Page Tags
Script Examples
- Write grep in Elisp
- Find Replace Variations
- Find String Inside HTML Tag
- Check Brackets Balance
- Validate Matching Brackets
- Generate Links Report
- Generate Sitemap
- Archive Website For Reader Download
- Process File line-by-line
- Text-Soup Automation
- Split HTML Annotation
- Fixing Dead Links
- Elisp vs Perl: Validate Local File Links
- Transform Page Tag
- Transform HTML FAQ Tags
- Transform HTML Tags
- βfigureβ to βfigcaptionβ
- βspan.wβ to βbβ
Misc
- Toggle Something
- Uncolor Region/Buffer
- Mouse Click to Highlight Matching Words
- URL Percent Decode/Encode