(define-key map "g" 'project-find-regexp)
(define-key map "G" 'project-or-external-find-regexp)
(define-key map "r" 'project-query-replace-regexp)
+ (define-key map "x" 'project-execute-extended-command)
map)
"Keymap for project commands.")
(project--ensure-read-project-list)
(mapcar #'car project--list))
+;;;###autoload
+(defun project-execute-extended-command ()
+ "Execute an extended command in project root."
+ (declare (interactive-only command-execute))
+ (interactive)
+ (let ((default-directory (project-root (project-current t))))
+ (call-interactively #'execute-extended-command)))
+
\f
;;; Project switching