Practical Emacs Lisp

LISP logo

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

Emacs Lisp Basics

  1. Emacs Lisp Basics
  2. Overview of Text-Processing in Emacs Lisp
  3. Emacs Lisp Examples
  4. Evaluate Emacs Lisp Code
  5. Doc Lookup
  6. Search Doc
  7. How to Edit Lisp Code

Elisp Basic Functions

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

Elisp: 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

Elisp, Writing Scritpts

  1. Run Elisp Script in Shell
  2. Get Command Line Args
  3. Read File
  4. Read File Content as List
  5. Write File
  6. Print, Output
  7. Format String
  8. Walk Dir
  9. Call Shell Command
  10. Get Script Name at Run Time

Elisp Data Structure

  1. Sequence: List, Array
  2. Vector
  3. List
  4. Sequence Functions
  5. Map List/Vector
  6. Exit Loop/Function
  7. Association List
  8. Property List
  9. Symbol Property List
  10. Hash Table

Elisp Misc

  1. Print Date Time
  2. Parse Date Time
  3. ƒ opt parameters
  4. Regex in Elisp
  5. Docstring Markup
  6. Unicode Escape
  7. Lisp Symbol
  8. Lisp Special Form
  9. What's Function
  10. Is X Defined?
  11. Check OS, Emacs Version

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

If you have a question, put $5 at patreon and message me.