Improve the behaviour of the visit-term command
This commit is contained in:
parent
cab4b80766
commit
71416f0008
1 changed files with 5 additions and 2 deletions
|
@ -52,8 +52,11 @@ file of a buffer in an external program."
|
||||||
(defun prelude-visit-term-buffer ()
|
(defun prelude-visit-term-buffer ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (not (get-buffer "*ansi-term*"))
|
(if (not (get-buffer "*ansi-term*"))
|
||||||
(ansi-term (getenv "SHELL"))
|
(progn
|
||||||
(switch-to-buffer "*ansi-term*")))
|
(split-window-sensibly (selected-window))
|
||||||
|
(other-window 1)
|
||||||
|
(ansi-term (getenv "SHELL")))
|
||||||
|
(switch-to-buffer-other-window "*ansi-term*")))
|
||||||
|
|
||||||
(defun prelude-google ()
|
(defun prelude-google ()
|
||||||
"Googles a query or region if any."
|
"Googles a query or region if any."
|
||||||
|
|
Loading…
Reference in a new issue