q0987
q0987

Reputation: 35982

how to change ~/.emacs to auto split screen and run eshell

After loading emacs, I always run the following command to setup the work environment:

1> C-x 2 to split the window as two buffers

2> C-x o to move cursor to the new created buffer

3> M-x eshell to enter shell mode

4> C-x o to move back to the original buffer.

Question> Is there a way that I can do all these automatically or at least make it little easier.

Thank you

Upvotes: 3

Views: 533

Answers (3)

Zsolt Botykai
Zsolt Botykai

Reputation: 51613

I'm using some other shell workflow with a popup window.

Here are two similar solutions:

HTH

Upvotes: 0

Vernon
Vernon

Reputation: 2783

Try this in your .emacs file:

(split-window)
(other-window 1)
(shell)
(other-window 1)

Upvotes: 7

jtahlborn
jtahlborn

Reputation: 53694

You can record this sequence as a keyboard macro, see this answer.

Upvotes: 2

Related Questions