Skip to content

Commit

Permalink
Merge pull request #737 from dougm/term-buffer-name
Browse files Browse the repository at this point in the history
Add prelude-term-buffer-name variable
  • Loading branch information
bbatsov committed Nov 23, 2014
2 parents ec42053 + 4517a2f commit cba761c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/prelude-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ With a prefix ARG always prompt for command to use."
(with-current-buffer buffer-or-name
major-mode))

(defvar prelude-term-buffer-name "ansi"
"The default `ansi-term' name used by `prelude-visit-term-buffer'.
This variable can be set via .dir-locals.el to provide multi-term support.")

(defun prelude-visit-term-buffer ()
"Create or visit a terminal buffer."
(interactive)
(prelude-start-or-switch-to (lambda ()
(ansi-term (getenv "SHELL")))
"*ansi-term*"))
(ansi-term (getenv "SHELL") (concat prelude-term-buffer-name "-term")))
(format "*%s-term*" prelude-term-buffer-name)))

(defun prelude-search (query-url prompt)
"Open the search url constructed with the QUERY-URL.
Expand Down

0 comments on commit cba761c

Please sign in to comment.