Function: projection--prompt

projection--prompt is a natively compiled function defined in projection-core-misc.el.

Signature

(projection--prompt PROMPT PROJECT &rest FORMAT-ARGS)

Documentation

Generate a prompt string for PROJECT with PROMPT.

FORMAT-ARGS will be used to format PROMPT if provided.

Source Code

;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-core-misc.el
(defun projection--prompt (prompt project &rest format-args)
  "Generate a prompt string for PROJECT with PROMPT.
FORMAT-ARGS will be used to format PROMPT if provided."
  (if project
      (apply #'format
             (concat "[%s] " prompt)
             (file-name-nondirectory
              (string-remove-suffix
               "/" (project-root project)))
             format-args)
    (apply #'format prompt format-args)))