PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Emacs Lisp

Emacs Lisp

< >

Emacs Lisp is a programming language created in 1985 by Richard Stallman.

#183on PLDB 37Years Old 1.6kUsers
0Books 0Papers 1kRepos

Try now: TIO · Replit

Emacs Lisp is a dialect of the Lisp programming language used as a scripting language by Emacs (a text editor family most commonly associated with GNU Emacs and XEmacs). It is used for implementing most of the editing functionality built into Emacs, the remainder being written in C (as is the Lisp interpreter itself). Emacs Lisp is also referred to as Elisp, although there is also an older, unrelated Lisp dialect with that name. Read more on Wikipedia...


Example from hello-world:
(message "Hello World")
Example from Linguist:
(print "Dude!")
Example from Wikipedia:
(defun switch-to-next-window-in-split () (set-window-buffer (next-window) (other-buffer))) (advice-add 'split-window-vertically :before #'switch-to-next-window-in-split)

Language features

Feature Supported Example Token
Strings
"Hello world"
"
Print() Debugging print
Comments
; A comment
Line Comments
; A comment
;
Semantic Indentation ϴ
MultiLine Comments ϴ
autoit.html · emacs-lisp.html · mumps.html

View source

PLDB - Build the next great programming language · v2022 · Day 94 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com