Difference between revisions of "IELM"

From WikEmacs
Jump to navigation Jump to search
(Added a short page on IELM)
 
(updated page to match new page template)
Line 1: Line 1:
== Overview ==
+
'''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.
  
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.  
+
<!-----DONT REMOVE ANYTHING FROM THIS TEMPLATE ------------------------------>
 +
<!-----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 ------------------>
  
== External links ==
 
  
 +
 +
<!------------------------------------------------------------------------->
 +
 +
= Basic setup =
 +
 +
IELM is bundle with Emacs default. No addition setup is required.
 +
 +
= Helpful keybindings =
 +
 +
; {{Keys|Tab}}
 +
: Complete symbol at [[Emacs_Terminology#Point|point]].
 +
 +
; {{Keys|Return}}
 +
: Evaluate expression
 +
 +
<!------------------------------------------------------------------------->
 +
= Common Customization =
 +
<!-- Customization common to all platforms goes here -->
 +
 +
== Show eldoc in IELM ==
 +
<source lang="lisp">
 +
(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)))
 +
</source>
 +
 +
= Recommended Reading =
 +
<!-- Only internal links. DO NOT insert EXTERNAL LINKS -->
 +
* [[Emacs Lisp]]
 +
* [[REPL]]
 +
 +
 +
<!------------------------------------------------------------------------->
 +
 +
= Tutorial Pages =
 
[http://emacs-fu.blogspot.com/2011/03/ielm-repl-for-emacs.html IELM: A REPL for Emacs]
 
[http://emacs-fu.blogspot.com/2011/03/ielm-repl-for-emacs.html IELM: A REPL for Emacs]
  
[[Category:Programming]]
+
<!------------------------------------------------------------------------->
 +
<!-- Add categories based on user-level (beginner etc), user-role (programming, emacs contributor etc), platform (windows, linux etc) or work flow (text editing, document authoring etc)  -->
 +
 
 +
[[Category:Beginner]][[Category:Lisp]][[Category:Programming]]

Revision as of 10:38, 28 March 2012

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 bundle with Emacs default. No addition setup is required.

Helpful keybindings

[Tab]
Complete symbol at point.
[Return]
Evaluate expression

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