Xah's Emacs Lisp Tutorial

Xah Lee, 2005, ..., 2009-08-10, 2009-11-12

This is a emacs lisp tutorial. The tutorial is focused on practical needs, and gives many examples. This tutorial is concise and to the point. It assumes you already know a scripting language, such as perl, python, visual basic.

This tutorial is designed so that each lesson is self-contained. However, it is recommened you read all numbered items in the Elisp Basics section.

LISP logo

Elisp Basics

  1. Emacs Lisp Basics
  2. Overview to Text-Edit Programing In Emacs
  3. Simple Elisp Examples!
  4. How To Edit Lisp Code in Emacs

Real-World Examples

GNU Emacs Lisp Reference Manual

String Replacement On Files

Examples of using regex with custome elisp function for the replacement string on the current buffer or multiple files.

Transform Text Under Cursor

Writing commands that act on the current word, line, or region, and transform them in some way.

The following changes the text under cursor into another form.

The following takes the current word, paragraph, region, or buffer, as input and do several things, such as updating files, lookup web, etc.

Batch Text Processing

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

Emacs Lisp Language Detail

Writing a Major Mode

Misc

Google
WebXahLee.org
2007-10
© 2007 by Xah Lee.