![emacs lisp emacs lisp](https://emacs-china.org/uploads/default/original/2X/f/fd87683789664d7bcca9c454ee18dedaa416f82b.png)
Richard Stallman chose Lisp as the extension language for his rewrite of Emacs (the original used Text Editor and Corrector (TECO) as its extension language) because of its powerful features, including the ability to treat functions as data. It supports imperative and functional programming methods. 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.Įmacs Lisp is most closely related to Maclisp, with some later influence from Common Lisp. 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.
#EMACS LISP CODE#
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.Įmacs Lisp can also function as a scripting language, much like the Unix Bourne shell or Perl, by calling Emacs in batch mode.
![emacs lisp emacs lisp](https://hyperleap.com/images/169bafefac5c96e7ad8b1714ec46c585/200-e2e9f0147fc1cd4b57dc43e19c756c93.jpg)
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. Other options include the Customize feature that's been in GNU Emacs since version 20. Users of Emacs commonly write Emacs Lisp code to customize and extend Emacs. Emacs Lisp is also termed Elisp, although there is also an older, unrelated Lisp dialect with that name. 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 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).