What are some REPLs for Emacs Lisp?
Is there only one that is within Emacs?
Are there some that run inside terminal outside Emacs?
What are some REPLs for Emacs Lisp?
Is there only one that is within Emacs?
Are there some that run inside terminal outside Emacs?
Based on this question: REPL on console emacs, you can use M-x ielm
(inferior emacs lisp mode).
read
, eval
, and print
. Emacs Lisp is no different, so you can do emacs --batch --eval '(while t (print (eval (read))))'
to get what you want. –
Albacore (defun repl() (interactive) (ielm))
. Then you can launch the interpreter with M-x repl
. –
Smalltime (defalias 'repl 'ielm)
–
Littlest There is a (work in progress) REPL for Emacs for use from the command line. It currently supports basic command line editing and history.
The code is hosted on Github.
There is this project on Gitlab. The REPL can run on a termninal or on Emacs' minibuffer. Even if you run it in "no-window-system" mode (with -nw
).
One can also just run eshell
M-x eshell
example
~/.emacs.d/org $ (directory-files "." nil ".org")
("#x1.org#" "#x2.org#" ".#x3.org" ...
© 2022 - 2024 — McMap. All rights reserved.
ieml
orielm
in bash, but it doesn't work. – Winebaum