[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need for a shell-mode-post-hook ?
From: |
Kai Großjohann |
Subject: |
Re: need for a shell-mode-post-hook ? |
Date: |
Tue, 11 Mar 2003 16:31:34 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) |
"Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
>>>>>> "Matthew" == Matthew Kennedy <mbkennedy@austin.rr.com> writes:
>> (add-hook 'shell-mode-post-hook '(erase-buffer))
>
> That's difficult because the shell buffer is asynchronous, so
> Emacs doesn't know when the shell's initialization is done.
>
> Tramp has to deal with the problem and it's pretty ugly, but maybe
> you can convince Kai to tell you how to reuse that ugly code for
> this other case ?
Tramp just looks for a shell prompt...
But maybe Matthew could change his ~/.emacs_bash to produce less
output? For example, maybe it works to put all commands on one
(virtual) line by doing things like
command1; \
command2; \
...
in ~/.emacs_bash.
--
A preposition is not a good thing to end a sentence with.