Practical Emacs Lisp

Buy Xah Emacs Tutorial. Master emacs benefits for life.
LISP logo

This is a example based tutorial, with focus on practical needs. I assume you already know a scripting language (⁖ Python, Perl, Ruby, JavaScript).

Each page is self-contained. But you should read all numbered items in the Elisp Basics section. Use the search box at top to find things. For daily tips, subscribe Xah Emacs Blog.

Emacs Lisp Basics

(read everything here)

  1. Elisp Basics
  2. Elisp Text Processing Overview
  3. Simple Elisp Examples!
  4. How to Evaluate Elisp Code
  5. Find Functions, Doc Lookup
  6. How to Edit Lisp Code with Emacs

Elisp Language Detail

Writing Interactive Commands

Batch Text Processing

Writing a Major Mode


following are practical examples.

First, see: Emacs Lisp: Write Emacs Commands Using {Perl, Python, Ruby, …}.

Transform Text Under Cursor

Transform/HTML

current unit and do things

Acts on current
{word, line, region, buffer, file},
and do things.
⁖ updating files, lookup web, print report, ….

Batch Text Processing Examples

Transform HTML


Function as Replacement String

Multi-Pair Find/Replace

Insert Things

Misc

blog comments powered by Disqus