1 parent 168a5ad commit 560776fCopy full SHA for 560776f
1 file changed
ghostel.el
@@ -1974,6 +1974,16 @@ wheel events reach ghostel's own scroll commands."
1974
(ghostel--start-process))
1975
(switch-to-buffer buffer)))
1976
1977
+;;;###autoload
1978
+(defun ghostel-project ()
1979
+ "Create a new Ghostel terminal in the current project's root.
1980
+The buffer name is prefixed with the project name."
1981
+ (interactive)
1982
+ (let ((default-directory (project-root (project-current t)))
1983
+ (ghostel-buffer-name (project-prefixed-buffer-name
1984
+ (string-replace "*" "" ghostel-buffer-name))))
1985
+ (ghostel)))
1986
+
1987
(defun ghostel-other ()
1988
"Switch to the next ghostel terminal buffer, or create one."
1989
(interactive)
0 commit comments