2

Every time I start Emacs, I want two windows, side by side, and one terminal/shell window below them both, as shown here.enter image description here

Please help me with the necessary code to my init file.

1
  • ;; startup windowing (split-window-vertically) (split-window-horizontally)
    – Rahul
    Aug 20 '17 at 14:53
1
(defun split-my-way()
(interactive)
(split-window-below)
(split-window-right)
(other-window -1)
(eshell)
)

(call-interactively 'split-my-way)
9
  • The interactive form comprises the first top-level form in a function body by convention.
    – Basil
    Aug 20 '17 at 14:45
  • This isn't giving results as expected.
    – Rahul
    Aug 20 '17 at 14:54
  • That's all? You should give some details. Aug 20 '17 at 14:54
  • @Basil: sure, sorry I overlooked it. Aug 20 '17 at 15:04
  • After adding your code, it looks like this - imgpaste.net/image/De8qF
    – Rahul
    Aug 20 '17 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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