all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* need for a shell-mode-post-hook ?
@ 2003-03-05  9:07 Matthew Kennedy
  2003-03-05  9:23 ` Kai Großjohann
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matthew Kennedy @ 2003-03-05  9:07 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-03-12  7:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-05  9:07 need for a shell-mode-post-hook ? Matthew Kennedy
2003-03-05  9:23 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.