Function: ghostel-project
ghostel-project is an interactive and natively compiled function
defined in ghostel.el.
Signature
(ghostel-project &optional ARG)
Documentation
Start a new Ghostel terminal in the current project's root.
The buffer name is prefixed with the project name; remote (TRAMP) projects also
carry the remote host, to distinguish equally named local and remote projects.
If a buffer already exists for this project, switch to it.
Otherwise create a new Ghostel buffer. ARG is passed through to
ghostel and accepts the same universal argument conventions.
To add this to project-switch-commands:
(add-to-list 'project-switch-commands '(ghostel-project "Ghostel") t)
Returns the buffer.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
;;;###autoload
(defun ghostel-project (&optional arg)
"Start a new Ghostel terminal in the current project's root.
The buffer name is prefixed with the project name; remote (TRAMP) projects also
carry the remote host, to distinguish equally named local and remote projects.
If a buffer already exists for this project, switch to it.
Otherwise create a new Ghostel buffer. ARG is passed through to
`ghostel' and accepts the same universal argument conventions.
To add this to `project-switch-commands':
(add-to-list \\='project-switch-commands \\='(ghostel-project \"Ghostel\") t)
Returns the buffer."
(interactive "P")
(let ((default-directory (project-root (project-current t))))
(ghostel--start `((kind . term)
(project-root . ,(ghostel--normalize-root
default-directory)))
(ghostel--project-buffer-name default-directory)
arg)))