From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: gredner@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: elisp to run a new shell and insert commands?
Date: Mon, 5 Mar 2007 17:35:51 +0100 [thread overview]
Message-ID: <082E7DD5-7FA5-4D84-9FAB-477FAE8C0983@Web.DE> (raw)
In-Reply-To: <1173106921.839598.257250@v33g2000cwv.googlegroups.com>
Am 05.03.2007 um 16:02 schrieb gredner@gmail.com:
> As part of the setup, I would like the
> script to run a new shell (i.e. via M-x shell), and then insert a
> command into the shell to setup some variables. I feel like this
> should be possible, but the documentation I have read does not mention
> any such functionality. Does it exist?
Yes, there is a way to achieve such things: ~/.emacs_<login shell>.
I have a similiar setup and included in ~/.emacs_tcsh, because tcsh
is my login shell:
echo "Hallöchen!"
sleep 1
if (-e ~/.emacs_tcsh-init) source ~/.emacs_tcsh-init && rm
~/.emacs_tcsh-init
As you can imagine any (t)csh statement can be used. The same is true
for sh, bash, ksh, ash ... The contents of ~/.emacs_tcsh-init is
generated from Elisp.
Because this is documented: is it this that you are searching for?
--
Greetings
Pete
It's not the valleys in life I dread so much as the dips.
-- Garfield
next prev parent reply other threads:[~2007-03-05 16:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 15:02 elisp to run a new shell and insert commands? gredner
2007-03-05 16:35 ` Peter Dyballa [this message]
[not found] ` <mailman.472.1173112709.7795.help-gnu-emacs@gnu.org>
2007-03-05 19:17 ` gredner
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=082E7DD5-7FA5-4D84-9FAB-477FAE8C0983@Web.DE \
--to=peter_dyballa@web.de \
--cc=gredner@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).