feat(vterm): add project-vterm binding
This commit is contained in:
parent
290ed2ea96
commit
86f5ab3d42
1 changed files with 8 additions and 6 deletions
14
config.el
14
config.el
|
@ -70,11 +70,13 @@
|
||||||
:custom
|
:custom
|
||||||
(c-basic-offset 4))
|
(c-basic-offset 4))
|
||||||
|
|
||||||
(use-package eat
|
(use-package vterm
|
||||||
:hook (eshell-load . (lambda ()
|
:preface
|
||||||
(eat-eshell-mode)
|
(defun project-vterm (&optional arg)
|
||||||
(eat-eshell-visual-command-mode)))
|
(interactive)
|
||||||
:bind (("C-c t" . eat)
|
(let* ((default-directory (project-root (project-current 1)))
|
||||||
("C-x p t" . eat-project)))
|
(vterm-buffer-name (project-prefixed-buffer-name "vterm")))
|
||||||
|
(vterm arg)))
|
||||||
|
:bind ("C-x p t" . project-vterm))
|
||||||
|
|
||||||
(provide 'config)
|
(provide 'config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue