Xah's Emacs Lisp Tutorial

Xah Lee, 2005, ..., 2010-09-01

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

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.

For new articles and updates, please subscribe Xah's Emacs Blog.

LISP logo

Elisp Basics

  1. Emacs Lisp Basics
  2. Overview to Text-Edit Programing In Emacs
  3. Simple Elisp Examples!
  4. How to Eval Emacs Lisp Code, Search Function, and Doc Lookup
  5. How to Edit Lisp Code with 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

If you would like to download this work for reading offline, i'd very much appreciate a donation. In the comment field, please say “emacs tutorial zip file”. I'll email you the download link. Make sure your email address is included and correct.

Thanks!
Home
Terms of Use
About
Advertise
Subscribe
Google
2007-10
© 2007 by Xah Lee.