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|___/ ~~ \___/ ~~~
|
|
|
Re: I for Interactive Programming? (was: widget_control and group_leader) [message #23097 is a reply to message #23096] |
Fri, 05 January 2001 03:18  |
dominik
Messages: 47 Registered: June 2000
|
Member |
|
|
>>>> > "RGF" == Richard G French <rfrench@wellesley.edu> writes:
RGF> Finally taking the plunge and trying to learn this system. I'm
RGF> using a PC with xterm software on it to connect to my unix
RGF> workstation. Trying to figure out how to use the Alt-TAB command
RGF> inside emacs- Alt-TAB is a windows thing that lets you hop
RGF> between running programs. I tried to use ESC-TAB but it does not
RGF> seem to do the right completion. Instead, I get Use symbol help
RGF> mode: and I am not sure what to do next. I've tried to find a way
RGF> to bind a different key to be my ALT key but I haven't succeeded.
RGF> Any emacs users out there who can help me out here? As should be
RGF> obvious, I have not used emacs before.
Are you running Emacs inside the xterm? Then you have only a terminal
connection and you cannot use the ALT key etc. You need to use
ESC-TAB to do completion. Since this seems to be overwritten in your
setup, try this in .emacs:
(add-hook 'idlwave-mode-hook
(lambda ()
(define-key idlwave-mode-map "\e\t" 'idlwave-complete)))
(add-hook 'idlwave-shell-mode-hook
(lambda ()
(define-key idlwave-shell-mode-map "\e\t" 'idlwave-shell-complete)))
- 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|___/ ~~ \___/ ~~~
|
|
|