1

I added the following two lines to my init.el script.

(split-window-vertically)
(other-window 1)

What I now would like to achieve is to start within the current window a term-mode with a bin/bash. How can this be achieved within the init.el? In emacs I run M-x term and then I'm asked if /bin/bash should be run, hit enter and a terminal is running. I'm struggling to achieve the same within the init.el. Thanks for the help

1 Answer 1

1

Add (term "/bin/bash") right after what you already have, and that worked on my setup. So you have:

(split-window-vertically)
(other-window 1)
(term "/bin/bash")

Your Emacs should start with (probably) the *scratch* buffer on top, and a term-mode window in a bash shell on the bottom, and your cursor at the command prompt.

1
  • thx, works perfectly!
    – user8
    Jan 19, 2016 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.