Question

I have figured how to close the scratch buffer and the GNU Emacs buffer, and I would now like to have a terminal started automatically within emacs, instead of having to type manually M-x ansi-term. I saw a couple posts explaining how to load a file at startup, but I believe the ansi-term buffer is a bit different.

I'd rather modify my .emacs than create an alias for emacs.

Was it helpful?

Solution

(add-hook 'emacs-startup-hook
  (lambda ()
    (kill-buffer "*scratch*")
    (ansi-term "/bin/bash")
  ))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top