From: Matthew Kennedy <mbkennedy@austin.rr.com>
Subject: need for a shell-mode-post-hook ?
Date: Wed, 05 Mar 2003 09:07:10 GMT [thread overview]
Message-ID: <87smu22ncd.fsf@killr.ath.cx> (raw)
My ~/.emacs_bash contains the following:
,----[ .emacs_bash ]
|
| PS1='\u@\h \W \$ '
`----
When I start shell with M-x shell RET, I get several prompts across
the top of the buffer. It looks pretty tacky to me. So I thought of
adding "clear" to the end of ~/.emacs_bash, however since its not
terminal-connected, clear has no effect (I think?).
So I'm wondering if there is a good case for a kind of
shell-mode-post-hook that would allow a hook *after* the start file
(~/.emacs_bash) is sent to the bash process via. comint. What I am
getting at is something like this:
(add-hook 'shell-mode-post-hook '(erase-buffer))
(followed possibly by sending a single, initial RET to the bash
process to force the prompt to show).
Perhaps there's an alternate way to achieve this? (as opposed to
editing my shell.el in the site-wide emacs lisp/ dir).
Matt
--
Matthew Kennedy
next reply other threads:[~2003-03-05 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 9:07 Matthew Kennedy [this message]
2003-03-05 9:23 ` need for a shell-mode-post-hook ? Kai Großjohann
2003-03-05 19:38 ` Kevin Rodgers
2003-03-10 20:21 ` Stefan Monnier
2003-03-11 15:31 ` Kai Großjohann
2003-03-12 7:53 ` Matthew Kennedy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87smu22ncd.fsf@killr.ath.cx \
--to=mbkennedy@austin.rr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).