15 lines
365 B
EmacsLisp
15 lines
365 B
EmacsLisp
|
(use-package vterm
|
||
|
:commands vterm
|
||
|
:init
|
||
|
(defun project-vterm ()
|
||
|
(interactive)
|
||
|
(if (projectile-project-root)
|
||
|
(call-interactively #'projectile-run-vterm)
|
||
|
(call-interactively #'vterm)))
|
||
|
:config
|
||
|
(add-hook 'vterm-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||
|
:general
|
||
|
(leader-map "v" #'project-vterm))
|
||
|
|
||
|
(provide 'init-vterm)
|