ErgoEmacsEmacsLispBlogEmacsLispBuy Tutorial
Web Hosting by 1&1

Xah Emacs Lisp Tutorial

Testimonials
LISP logo

This tutorial focus on practical needs with examples. It assumes you already know a scripting language (⁖ Perl, Python, JavaScript, PHP).

Each page 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.

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

Advanced Emacs Lisp

Elisp Language Detail

Writing a Major Mode

String Replacement

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

Using ƒ in Replacement String

Multi-Pair Find/Replace

Transform Text Under Cursor

Commands that act on the current {word, line, region} and transform them in some way. First, check out Emacs Lisp Wrapper for Perl/Python/Ruby Scripts.

The following takes the text under cursor or current file, and do several things. ⁖ updating files, lookup web, ….

Batch Text Processing

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

Transform HTML

Xah Emacs Modes

Misc

Buy Xah Emacs & Emacs Lisp Tutorial

blog comments powered by Disqus