Hi All,

Here's what I'd like to be doing - When I start emacs, I typically open up multiple eshells to do different kinds of compilation etc. Is there  a way to retain the "session" in such a manner that all open eshells are also retained.

As a workaround I was attempting to write a script that would open up the necessary eshells -

(progn
   (eshell)
   (rename-buffer "b1")
    (insert "cd path1\n")
    (eshell)
   (rename-buffer "b2")
    (insert "cd path2\n")
)
The problem is that I am not able to cd into the right place in eshell using (insert "cd path1\n") !!!

Regards,
Kashyap