Refactor prelude-visit-term-buffer

This commit is contained in:
Bozhidar Batsov 2013-04-29 17:12:40 +03:00
parent 37aa47f427
commit f4d71fea83

View file

@ -54,12 +54,9 @@
(defun prelude-visit-term-buffer ()
"Create or visit a terminal buffer."
(interactive)
(if (not (get-buffer "*ansi-term*"))
(progn
(split-window-sensibly (selected-window))
(other-window 1)
(ansi-term (getenv "SHELL")))
(switch-to-buffer-other-window "*ansi-term*")))
(prelude-start-or-switch-to (lambda ()
(ansi-term (getenv "SHELL")))
"*ansi-term*"))
(defun prelude-google ()
"Googles a query or region if any."