Difference between revisions of "IELM"
Jump to navigation
Jump to search
PhilHudson (talk | contribs) m (Typo) |
PhilHudson (talk | contribs) |
||
Line 17: | Line 17: | ||
; {{Keys|Tab}} | ; {{Keys|Tab}} | ||
− | : Complete symbol at [[Emacs_Terminology#Point|point]]. | + | : Complete [[symbol]] at [[Emacs_Terminology#Point|point]]. |
; {{Keys|Return}} | ; {{Keys|Return}} | ||
− | : Evaluate expression | + | : Evaluate [[expression]] |
<!-------------------------------------------------------------------------> | <!-------------------------------------------------------------------------> | ||
+ | |||
= Common Customization = | = Common Customization = | ||
<!-- Customization common to all platforms goes here --> | <!-- Customization common to all platforms goes here --> |
Revision as of 13:07, 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 bundled with Emacs by default. No addition setup is required.
Helpful keybindings
- [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