+eshell/open now uses project eshells first priority!
This commit is contained in:
@@ -104,9 +104,9 @@ If `arg' is non nil, then always prompt user to select an instance."
|
|||||||
((null arg)
|
((null arg)
|
||||||
;; No arg => Choose a default instance
|
;; No arg => Choose a default instance
|
||||||
(let* ((candidates (+eshell/--current-instances))
|
(let* ((candidates (+eshell/--current-instances))
|
||||||
(default-cand (assoc "*eshell*" candidates #'string=))
|
(project-cand (assoc (project-prefixed-buffer-name "eshell") candidates #'string=))
|
||||||
(vacuous-cand (car candidates)))
|
(default-cand (assoc "*eshell*" candidates #'string=)))
|
||||||
(if-let ((cand (or default-cand vacuous-cand)))
|
(if-let ((cand (or project-cand default-cand)))
|
||||||
(switch-to-buffer (cdr cand))
|
(switch-to-buffer (cdr cand))
|
||||||
(eshell))))
|
(eshell))))
|
||||||
((= (car arg) 4)
|
((= (car arg) 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user