Re: I for Interactive Programming? (was: widget_control and group_leader) [message #23096] |
Fri, 05 January 2001 03:20  |
dominik
Messages: 47 Registered: June 2000
|
Member |
|
|
>>>> > "JS" == JD Smith <jdsmith@astro.cornell.edu> writes:
JS> Hear Hear! I've got something even better (from Carsten, of
JS> course). I'm not sure if this has been put into IDLWAVE yet as a
JS> more palatable form (I vote for it), but if you have version >4.7b
JS> (meaning when 4.8 comes out, if you're leary of alpha's) you can
JS> simply use in your .emacs:
JS> (add-hook 'idlwave-shell-mode-hook (lambda () (set
JS> (make-local-variable 'comint-input-ring-file-name) "~/.idlwhist")
JS> (comint-read-input-ring)))
JS> (add-hook 'idlwave-shell-sentinel-hook 'comint-write-input-ring)
JS> I.e. just set up a "comint input ring filename" to ~/.idlwhist (or
JS> whatever you like), and ensures it is read in when the shell
JS> starts (in the idlwave-shell-mode-hook), and written out after it
JS> exits (in the idlwave-shell-sentinel-hook).
This will be the default in IDLWAVE 4.8.
- Carsten
--
Carsten Dominik <dominik@astro.uva.nl> \ _ /
Sterrenkundig Instituut "Anton Pannekoek" |X| _
Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___/ ~~ \___/ ~~~
|
|
|