all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: C K Kashyap <ckkashyap@gmail.com>
To: Tom Willemsen <tom@ryuslash.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Executing init script after launching eshell
Date: Tue, 27 Mar 2012 15:56:37 +0530	[thread overview]
Message-ID: <CAGdT1gqa53AvXA8y6B1UxcYnqHhSfny9dhVauj12rkhtjFrxaw@mail.gmail.com> (raw)
In-Reply-To: <m34ntah1bt.fsf@ryuslash.org>

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

Thanks Tom

Maybe the following could work, it seems to do what you want when I try
> it here.
>
> (progn
>  (let ((default-directory "path1"))
>    (eshell t)
>    (rename-buffer "b1"))
>  (let ((default-directory "path2"))
>    (eshell t)
>    (rename-buffer "b2")))
>
>
This is a working solution for me.


> (progn
>  (eshell t)
>  (eshell/cd "path1")
>  (eshell-send-input)
>  (eshell t)
>  (eshell/cd "path2")
>  (eshell-send-input))
>
>
The above snippet does not seem to work for me. Could you please explain
the below lines ?

 (eshell t) -> This opens up a new eshell
 (eshell/cd "path1") - ?????
 (eshell-send-input) - I am guessing the command in the previous step gets
passed on using this command.


> Hope it helps in some small way.
>

Absolutely helps!!!

Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 1465 bytes --]

  reply	other threads:[~2012-03-27 10:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27  7:58 Executing init script after launching eshell C K Kashyap
2012-03-27  8:53 ` Tom Willemsen
2012-03-27 10:26   ` C K Kashyap [this message]
2012-03-27 11:21     ` Tom Willemsen
2012-03-27 13:13       ` C K Kashyap

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGdT1gqa53AvXA8y6B1UxcYnqHhSfny9dhVauj12rkhtjFrxaw@mail.gmail.com \
    --to=ckkashyap@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tom@ryuslash.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.
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.