Function: project-shell-command
project-shell-command is an autoloaded, interactive and byte-compiled
function defined in project.el.gz.
Signature
(project-shell-command)
Documentation
Run shell-command in the current project's root directory.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
;;;###autoload
(defun project-shell-command ()
"Run `shell-command' in the current project's root directory."
(declare (interactive-only shell-command))
(interactive)
(let ((default-directory (project-root (project-current t))))
(call-interactively #'shell-command)))