Practical Emacs Lisp
This chapter teach you how to write emacs commands and how to write emacs lisp script that can be run in a terminal.
It cover topics such as insert text, delete text, search text, cursor position, moving cursor, copy paste text, find replace string, query user, buffer, read write file, list files, etc.
Table of Contents
Writing Command
Text Processing
- Cursor Position Functions
- Move Cursor
- Search Text Functions
- Text Editing Functions
- Mark, Region, Active Region
- Cut Copy Paste, kill-ring
- Get Buffer String
- Functions on Line
- Get Text at Cursor (thing-at-point)
- Get Text Block 📜
- Save narrow-to-region
- Find Replace Text in Buffer
Get User Input
File, Buffer
- Buffer Functions
- Read File
- Read File Content as String or Lines
- Open File, Read, Possibly Write
- Write File
- File and Directory Functions
- Get File Info
- File Path Functions
- Walk Directory, List Files
- Walk Directory by Depth 📜
- Get Dired Marked Files
Call Shell Command
- Call Shell Command
- Call Shell Command on Region
- Start External Process
- Emacs Init: Environment Variables
- exec-path, External Program Search Paths
Package
Writing Script
- Run Elisp Script in Terminal
- Get Command Line Arguments
- Get Script Name at Run Time, Call by Relative Path