(Emacs) Lisp Basics
Emacs is possible because of the embedded programing language emacs lisp. Learning a bit emacs lisp will increase your understanding of emacs by a lot.
This chapter teachs you the basics of the lisp language core. In particular, it focus on elements of emacs lisp that is also available in general purpose lisp programing languages. Such as, basic syntax, arithmetics, string, variable, branch control, loop, writing a function, data structure.
This chapter does not cover elements of emacs lisp that only exist in emacs as an editor, such as emacs lisp elements that is cursor, moving cursor, find/replace text in buffer, buffer datatype, switching buffer, programing font, programing syntax coloring, manipulating copy/paste, insert text, programing user interface, etc. (these are covered in the chapter Practical Emacs Lisp ⭐ and Emacs Lisp How to Write Major Mode )
Lisp Basics
Basics
- Emacs Lisp Basics
- Comment
- String
- String Functions
- Format String
- Arithmetic
- Convert Int/Float/String
- Boolean
- Test Equality
- Variable
- Block of Expression
- If Then Else
- Loop
Lisp Data Structure
- Cons Pair
- List
- Vector
- Sequence Type
- Sequence Functions
- Sequence Iteration
- Association List
- Property List
- Symbol Property List
- Backquote Reader Macro
- Hash Table
Function
- Define Function
- function parameters
- Fuction Doc String
- Lambda
- throw, catch, exit
- Apply Function (List to Args)
- Function Types