Difference between revisions of "IELM"

From WikEmacs
Jump to navigation Jump to search
m (Typo)
(rm emacswiki word)
 
(24 intermediate revisions by 10 users not shown)
Line 1: Line 1:
'''IELM (Interactive Emacs Lisp Mode)''' is a nice mode that gives you an interactive [[Emacs Lisp]] shell (or a REPL if you prefer) that you can use for exploratory programming.  You can start it by pressing {{Command|ielm}}. You'll be taken to a buffer named '''ielm''', where Emacs Lisp expressions you've entered will be evaluated on pressing the Return key. IELM offers some nice features like TAB autocompletion of symbol names and the ability to span an expression over several lines.  
+
{{package
 +
| name=IELM
 +
| description=Emacs Lisp REPL
 +
| author=David Smith
 +
| maintainer=
 +
| source=
 +
| in_emacs=yes
 +
}}
 +
 
 +
'''IELM (Interactive Emacs Lisp Mode)''' is a nice mode that gives you an interactive [[Emacs Lisp]] shell (or a {{Acronym|REPL|Read-Eval-Print Loop}} if you prefer) that you can use for exploratory programming.  You can start it by pressing {{Command|ielm}}. You'll be taken to a buffer named {{Buffer|*ielm*}}, where Emacs Lisp expressions you've entered will be evaluated on pressing the Return key. IELM offers some nice features like tab autocompletion of symbol names and the ability to span an expression over several lines.  
  
 
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------>
 
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------>
 
<!-----FEW MONTHS, YEARS FROM WE CAN DELETE STUFF. NOT NOW ------------------>
 
<!-----FEW MONTHS, YEARS FROM WE CAN DELETE STUFF. NOT NOW ------------------>
<!-----YOU DON"T WANT WIKEMACS TO BE ANOTHER EMACSWIKI RIGHT ------------------>
 
 
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------>
 
<!-----PLEASE BE PATIENT AND CO-OPERATE FOR GREATER GOOD ------------------>
  
Line 12: Line 20:
 
= Basic setup =
 
= Basic setup =
  
IELM is bundled with Emacs by default. No addition setup is required.
+
IELM is bundled with Emacs by default. No additional setup is required.
  
= Helpful keybindings =
 
 
; {{Keys|Tab}}
 
: Complete symbol at [[Emacs_Terminology#Point|point]].
 
 
; {{Keys|Return}}
 
: Evaluate expression
 
 
<!------------------------------------------------------------------------->
 
 
= Common Customization =
 
= Common Customization =
 
<!-- Customization common to all platforms goes here -->
 
<!-- Customization common to all platforms goes here -->
  
== Show eldoc in IELM ==
+
== Show {{ModeLink|eldoc}} in IELM ==
 
<source lang="lisp">
 
<source lang="lisp">
 
(defun my-ielm-mode-defaults ()
 
(defun my-ielm-mode-defaults ()

Latest revision as of 09:14, 17 May 2017

IELM
Description Emacs Lisp REPL
Author David Smith
Part of Emacs yes

IELM (Interactive Emacs Lisp Mode) is a nice mode that gives you an interactive Emacs Lisp shell (or a REPL if you prefer) that you can use for exploratory programming. You can start it by pressing M-x ielm. You'll be taken to a buffer named "*ielm*", where Emacs Lisp expressions you've entered will be evaluated on pressing the Return key. IELM offers some nice features like tab autocompletion of symbol names and the ability to span an expression over several lines.



Basic setup

IELM is bundled with Emacs by default. No additional setup is required.

Common Customization

Show eldoc in IELM

(defun my-ielm-mode-defaults ()
  (turn-on-eldoc-mode))

(setq my-ielm-mode-hook 'my-ielm-mode-defaults)

(add-hook 'ielm-mode-hook (lambda () (run-hooks 'my-ielm-mode-hook)))

Recommended Reading


Tutorial Pages

IELM: A REPL for Emacs