Skip to content

Commit

Permalink
Add prelude-term-buffer-name variable
Browse files Browse the repository at this point in the history
This provides multi-term support via .dir-locals.el for example.
  • Loading branch information
dougm committed Nov 6, 2014
1 parent 21df465 commit 2dc3b43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/prelude-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ With a prefix ARG always prompt for command to use."
(with-current-buffer buffer-or-name
major-mode))

(defvar prelude-term-buffer-name "ansi")

(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 2dc3b43

Please sign in to comment.