common/home-manager/emacs: make xe/tabnew-shell open projectile shells if it can
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
9c960a866a
commit
709a618a2d
|
@ -26,7 +26,10 @@ cell (regexp . minor-mode)."
|
||||||
"Opens a shell in a new tab (tmux Control-b c)."
|
"Opens a shell in a new tab (tmux Control-b c)."
|
||||||
(interactive)
|
(interactive)
|
||||||
(tab-bar-new-tab 1)
|
(tab-bar-new-tab 1)
|
||||||
(vterm)
|
(let ((proj-type (projectile-project-type)))
|
||||||
|
(if (eq proj-type 'nil)
|
||||||
|
(vterm)
|
||||||
|
(projectile-run-vterm)))
|
||||||
(rename-uniquely))
|
(rename-uniquely))
|
||||||
|
|
||||||
(provide 'xe-tools)
|
(provide 'xe-tools)
|
||||||
|
|
Loading…
Reference in New Issue