Mercurial > emacs
comparison lisp/ielm.el @ 52446:2683a7145ceb
(ielm-mode-hook): Add :options.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sat, 06 Sep 2003 17:33:35 +0000 |
parents | 695cf19ef79e |
children | 60202911eed0 |
comparison
equal
deleted
inserted
replaced
52445:d776a9884cef | 52446:2683a7145ceb |
---|---|
28 | 28 |
29 ;; Provides a nice interface to evaluating Emacs Lisp expressions. | 29 ;; Provides a nice interface to evaluating Emacs Lisp expressions. |
30 ;; Input is handled by the comint package, and output is passed | 30 ;; Input is handled by the comint package, and output is passed |
31 ;; through the pretty-printer. | 31 ;; through the pretty-printer. |
32 | 32 |
33 ;; To install: copy this file to a directory in your load-path, and | |
34 ;; add the following line to your .emacs file: | |
35 ;; | |
36 ;; (autoload 'ielm "ielm" "Start an inferior Emacs Lisp session" t) | |
37 ;; | |
38 ;; For completion to work, the comint.el from Emacs 19.23 is | |
39 ;; required. If you do not have it, or if you are running Lemacs, | |
40 ;; also add the following code to your .emacs: | |
41 ;; | |
42 ;; (setq ielm-mode-hook | |
43 ;; '(lambda nil | |
44 ;; (define-key ielm-map "\t" | |
45 ;; '(lambda nil (interactive) (or (ielm-tab) | |
46 ;; (lisp-complete-symbol)))))) | |
47 | |
48 ;; To start: M-x ielm. Type C-h m in the *ielm* buffer for more info. | 33 ;; To start: M-x ielm. Type C-h m in the *ielm* buffer for more info. |
49 | |
50 ;; The latest version is available by WWW from | |
51 ;; http://mathssun5.lancs.ac.uk:2080/~maa036/elisp/dir.html | |
52 ;; or by anonymous FTP from | |
53 ;; /anonymous@wingra.stat.wisc.edu:pub/src/emacs-lisp/ielm.el.gz | |
54 ;; or from the author: David M. Smith <maa036@lancaster.ac.uk> | |
55 | 34 |
56 ;;; Code: | 35 ;;; Code: |
57 | 36 |
58 (require 'comint) | 37 (require 'comint) |
59 (require 'pp) | 38 (require 'pp) |
93 :type 'boolean | 72 :type 'boolean |
94 :group 'ielm) | 73 :group 'ielm) |
95 | 74 |
96 (defcustom ielm-mode-hook nil | 75 (defcustom ielm-mode-hook nil |
97 "*Hooks to be run when IELM (`inferior-emacs-lisp-mode') is started." | 76 "*Hooks to be run when IELM (`inferior-emacs-lisp-mode') is started." |
77 :options '(turn-on-eldoc-mode) | |
98 :type 'hook | 78 :type 'hook |
99 :group 'ielm) | 79 :group 'ielm) |
100 | 80 |
101 (defvar * nil | 81 (defvar * nil |
102 "Most recent value evaluated in IELM.") | 82 "Most recent value evaluated in IELM.") |