2013/02/01(Fri)
2分割して起動したEmacsの左側にBashを表示する
環境: Linux Mint 14 と Gnu Emacs 24
~/.emacs.d/init.elに以下を追加する。
;; 起動時にウィンドウを分割、左側にBashを表示
(defun split-window-and-run-shell()
(setq w (selected-window))
(setq w2 (split-window w nil t))
(select-window w)
(shell) ;; Bash
(select-window w))
(add-hook 'after-init-hook (lambda()(split-window-and-run-shell)))
Gnu Emacs Reference Mugs (Emacsのマグカップ♡)



