1
0
Fork 0

fix(emacs): add prefix arg for opening new terminal

This commit is contained in:
Lucas Sta Maria 2025-02-08 19:14:42 -05:00
parent 12e56ed952
commit 2d1e04a4df
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -27,11 +27,15 @@
(find-file (expand-file-name file-path))))
(defun priime-terminal ()
"Open a terminal in the current project or current directory."
"Open an optionally-new terminal in the current project or current directory."
(interactive)
(priime--open-terminal (and current-prefix-arg t)))
(defun priime--open-terminal (prefix-arg)
"Open a terminal in the current project or current directory."
(if (projectile-project-p)
(projectile-run-vterm)
(vterm)))
(projectile-run-vterm prefix-arg)
(vterm prefix-arg)))
(defun priime-split-terminal ()
"Split a terminal on the right and move to it."