Function: clojure-project-dir
clojure-project-dir is a byte-compiled function defined in
clojure-mode.el.
Signature
(clojure-project-dir &optional DIR-NAME)
Documentation
Return the absolute path to the project's root directory.
Call is delegated down to clojure-project-root-function with
optional DIR-NAME as argument.
When clojure-cache-project-dir is t the results of the command
are cached in a buffer local variable (clojure-cached-project-dir).
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-project-dir (&optional dir-name)
"Return the absolute path to the project's root directory.
Call is delegated down to `clojure-project-root-function' with
optional DIR-NAME as argument.
When `clojure-cache-project-dir' is t the results of the command
are cached in a buffer local variable (`clojure-cached-project-dir')."
(let ((project-dir (or clojure-cached-project-dir
(funcall clojure-project-root-function dir-name))))
(when (and clojure-cache-project-dir
(derived-mode-p 'clojure-mode)
(not clojure-cached-project-dir))
(setq clojure-cached-project-dir project-dir))
project-dir))