1
0
Fork 0

fix(emacs): create and use new priime-terminal command

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-14 17:01:58 -05:00
parent 9656d6f422
commit c104699523
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -26,13 +26,18 @@
(write-file file-path)
(find-file (expand-file-name file-path))))
(defun priime-terminal ()
"Open a terminal in the current project or current directory."
(interactive)
(if (projectile-project-p)
(projectile-run-vterm)
(vterm)))
(defun priime-split-terminal ()
"Split a terminal on the right and move to it."
(interactive)
(priime-split-right)
(if (projectile-project-p)
(projectile-run-vterm)
(vterm))
(priime-terminal)
(balance-windows))
(use-package projectile :straight t
@ -54,7 +59,7 @@
(use-package no-littering :straight t)
(use-package vterm :straight t
:custom (vterm-shell (or (executable-find "fish") shell-file-name))
:bind (("C-c v" . vterm)
:bind (("C-c v" . priime-terminal)
("<f8>" . priime-split-terminal)))
(use-package rg :straight t)
(use-package anzu :straight t