Xah Emacs Lisp Tutorial

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

Practical Examples

Function as Replacement String

Multi-Pair Find/Replace

Transform Text Under Cursor

Commands that act on the current {word, line, paragraph, buffer, region} and transform them in some way.

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

The following acts on the current {word, line, paragraph, buffer, region}, and do several things. ⁖ updating files, lookup web, ….

Batch Text Processing Examples

In the following examples, typically a function is applied to thousands of files, either to generate a report or modify each file.

Transform HTML


blog comments powered by Disqus