Emacs Lisp (or elisp) is a dialect of Lisp, the LISt Processing Language.
The name is pretty self-explicative, considering that the you can find a lot of lists. Every list is defined by parentheses in which the first element is to be considered as the operator and the other ones are data passed to the first to do some kind of work.
(= 1 2) ;; => nil
This function, for example, verifies the identity of the two parameters passed and returns us a boolean (
t for "true",
nil for "false"). The empty list
() is another kind of "false" type in lisp.
TODO translate chapters:
- "What if we want a simple list of data?"
- "Code evaluation"
- "Defining functions"
- "Interactive functions"
goto-char, you can move through the buffer.
Let's see some useful function:
messagesends a string to be echoed on minibuffer;
boundplooks up for a variable and check if it's not void: if so, it returns the variable, either it returns
fboundpis like the previous one, but it returns
tinstead of the variable.
Did you find this post useful?
Remember that this website doesn’t make use of any trackers or analytics or adv so it doesn’t earn from your visits (moreover, it has a minimal environmental impact).