Xah Emacs Lisp Tutorial

What Are People Saying?

, 2005, …, 2011

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, 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, subscribe: Xah 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 Evaluate Emacs Lisp Code
  5. Finding Functions and Documentation Lookup
  6. How to Edit Lisp Code with Emacs
GNU Emacs Lisp Reference Manual

String Replacement

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

Using a Elisp Function as Replacement String

Multi-Pair String Replacement

Ask Your Question Here

Commands to Transform Text Under Cursor

Writing commands that act on the current word, line, or region, and transform them in some way. The list is ordered roughly from simple to more difficult.

The following changes the text under cursor into another form.

The following takes the text under cursor and do several things, such as updating files, lookup web, etc.

Emacs Lisp Script for Batch Text Processing

Xah Emacs Modes; Your Support Appreciated

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

Emacs Lisp Language Detail

Writing a Major Mode

Banner

Misc

Buy Xah Emacs & Emacs Lisp Tutorial

blog comments powered by Disqus