Emacs Lisp

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. Emacs Lisp is also termed Elisp, although there are also older, unrelated Lisp dialects with that name.

Emacs Lisp
Emacs logo
ParadigmFunctional, meta, reflective
FamilyLisp
Designed byRichard Stallman,
Guy L. Steele, Jr.
DeveloperGNU Project
First appeared1985 (1985)
Stable release
29.1 / 30 July 2023 (2023-07-30)
Typing disciplineDynamic, strong
ScopeDynamic, optionally lexical
PlatformEmacs
OSCross-platform
LicenseGPLv3
Filename extensions.el, .elc, .eln
Websitewww.gnu.org/software/emacs
Influenced by
Common Lisp, Maclisp

Users of Emacs commonly write Emacs Lisp code to customize and extend Emacs. Itself written in Emacs Lisp, Customize provides a set of preferences pages allowing the user to set options and preview their effect in the running Emacs session. When the user saves their changes, Customize simply writes the necessary Emacs Lisp code to the user's config file, which can be set to a special file that only Customize uses, to avoid the possibility of altering the user's own file.

Emacs Lisp can also function as a scripting language, much like the Unix Bourne shell or Perl, by calling Emacs in batch mode. In this way it may be called from the command line or via an executable file, and its editing functions, such as buffers and movement commands are available to the program just as in the normal mode. No user interface is presented when Emacs is started in batch mode; it simply executes the passed-in script and exits, displaying any output from the script.

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.