3
votes

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

3

3 Answers

7
votes

Try this in your .emacs file:

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

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

0
votes

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

Here are two similar solutions:

HTH