Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
(require 'align)
(require 'subr-x)
(require 'lisp-mnt)
(require 'project)

(declare-function lisp-fill-paragraph "lisp-mode" (&optional justify))

Expand Down Expand Up @@ -1718,6 +1719,9 @@ Return nil if not inside a project."
(when (> (length choices) 0)
(car (sort choices #'file-in-directory-p)))))

(cl-defmethod project-roots ((project (head clojure)))
(list (cdr project)))

(defun clojure-project-relative-path (path)
"Denormalize PATH by making it relative to the project root."
(file-relative-name path (clojure-project-dir)))
Expand Down