1

By default, if I invoke emacs from terminal by typing $ emacs C:\users a directory-like environment opens. Then if I do M-x eshell, an eshell environment opens at this path.

My question is how to directly go to this eshell from the initial terminal. I tried $ emacs C:\users eshell and $ emacs C:\users M-x eshell but they don't work.

Added: As an application of the below solution of abo-abo, on Microsoft OS, if at the path bar of your window directory, you type emacs -f eshell, an eshell will be opened at that directory:

enter image description here

Name
  • 7,689
  • 4
  • 38
  • 84

1 Answers1

3

Like this:

emacs C:\users -f eshell 
abo-abo
  • 13,943
  • 1
  • 29
  • 43