fix(emacs): add prefix arg for opening new terminal
This commit is contained in:
parent
12e56ed952
commit
2d1e04a4df
1 changed files with 7 additions and 3 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue