Graças a @lawlist:
;; Open split shell on launch
(add-hook 'emacs-startup-hook
(lambda ()
(let ((w (split-window-below 2)))
(select-window w)
(sh))
(switch-to-buffer "*shell*")))
Eu tentei adicionar este snippet ao meu ~/.emacs
, mas o mapeamento de buffer / janela resultante é estranho.
;; Open split shell on launch
(add-hook 'after-init-hook
(lambda ()
(let ((w (split-window-below 2)))
(select-window w)
(sh))
(switch-to-buffer "*shell*")))
Exemplo:
$ emacs .
Esperado:
Observado:
Tags emacs