Category:Emacs Lisp: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Fix bad link.)
No edit summary
Line 9: Line 9:


Emacs Lisp can be used as a general programming language with the emacs "-batch" or "--script" command line arguments. [http://www.emacswiki.org/emacs/BatchMode]
Emacs Lisp can be used as a general programming language with the emacs "-batch" or "--script" command line arguments. [http://www.emacswiki.org/emacs/BatchMode]

==How to run Emacs Lisp code==

A simple way to run Emacs code is to switch to the scratch buffer (Buffers -> *scratch*), type in or paste some Lisp code, and then move to the end of the Lisp expression and press Control-J to evaluate it.[https://www.gnu.org/software/emacs/manual/html_node/efaq/Evaluating-Emacs-Lisp-code.html]

If the debugger window appears, it can be dismissed with File -> Close like any other buffer.

Lisp code can also be added to the user's ~/.emacs file, which is evaluated at startup.

==External links==

* [https://www.gnu.org/software/emacs/ GNU Emacs homepage]

Revision as of 19:31, 25 April 2022

Language
Emacs Lisp
This programming language may be used to instruct a computer to perform a task.
Execution method: Compiled (bytecode)
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Emacs Lisp.
Emacs Lisp is an implementation of Lisp. Other implementations of Lisp.

Emacs Lisp (often abbreviated to elisp) is the Lisp implementation used by the Emacs text editor. It doesn't provide all features of Common Lisp (e.g. its optional arguments always default to nil), but it contains special types which are specific for the use in the editor, like buffers (which is where you actually edit the text), windows, events etc.

Lisp expressions can be executed directly from within Emacs editor buffers, or loaded from files which optionally can be compiled into bytecode.

Emacs configuration files actually are Emacs Lisp source files.

Emacs Lisp can be used as a general programming language with the emacs "-batch" or "--script" command line arguments. [1]

How to run Emacs Lisp code

A simple way to run Emacs code is to switch to the scratch buffer (Buffers -> *scratch*), type in or paste some Lisp code, and then move to the end of the Lisp expression and press Control-J to evaluate it.[2]

If the debugger window appears, it can be dismissed with File -> Close like any other buffer.

Lisp code can also be added to the user's ~/.emacs file, which is evaluated at startup.

External links

Subcategories

This category has the following 3 subcategories, out of 3 total.

Pages in category "Emacs Lisp"

The following 189 pages are in this category, out of 189 total.