Practical Emacs Lisp

LISP logo

This is a example based tutorial, with focus on how-to.

Emacs Lisp Basics

  1. Elisp Basics
  2. Elisp Text Processing Overview
  3. Simple Examples
  4. How to Eval Elisp Code
  5. Doc Lookup
  6. Search Doc
  7. How to Edit Lisp Code

Basic Functions

  1. Cursor Position
  2. Text Editing
  3. String Functions
  4. Buffer and File
  5. File and Directory

Writing Command

  1. Writing Command, Basics
  2. Mark and Region
  3. Get Buffer String
  4. Work with Lines
  5. Copy Cut Paste kill-ring
  6. Get User Input
  7. Interactive Form
  8. Get universal-argument
  9. Find Replace Text
  10. thing-at-point

Writing Script

  1. Writing Elisp Script
  2. Run Elisp Script in Shell
  3. Read File Content as List
  4. printing, format, output
  5. Get Command Line Arg
  6. Get Script Name at Run Time

Elisp Data Structure

  1. Sequence, List, Vector
  2. Vector
  3. List
  4. Associative List
  5. Property List
  6. Symbol Property List
  7. Map / Enumerate
  8. Filter a List
  9. Hash Table

Elisp Misc

  1. ƒ opt parameters
  2. Regex in Elisp
  3. Docstring Markup
  4. Exit ƒ/Loop/Map
  5. Unicode Escape
  6. Print Date Time
  7. Parse Date Time
  8. Lisp Symbol
  9. Is X Defined?
  10. Check OS, Emacs Version
  11. Traverse Dir
  12. Trim String

Command Examples

Emacs Lisp Command Examples

Elisp Script Examples

Emacs Lisp Script Examples

How to Write Major Mode

Emacs Lisp How to Write Major Mode

Misc

Emacs Lisp Misc

Patreon me $5 patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs

Patreon me $5. Ask me question on patreon