Skip to content

Commit 9e28721

Browse files
committed
Add some basic integration with project.el
1 parent 610d1f6 commit 9e28721

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* The results of `clojure-project-dir` are cached by default to optimize performance.
99
* Add `shadow-cljs.edn` to the default list of build tool files.
1010
* [#478](https://github.com/clojure-emacs/clojure-mode/issues/478): Cache the result of `clojure-find-ns` to optimize performance.
11+
* New interactive commands `clojure-show-cache` and `clojure-clear-cache`.
12+
* Add basic integration with `project.el`.
1113

1214
## 5.7.0 (2018-04-29)
1315

clojure-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ replacement for `cljr-expand-let`."
550550
;; `electric-layout-post-self-insert-function' prevents indentation in strings
551551
;; and comments, force indentation in docstrings:
552552
(add-hook 'electric-indent-functions
553-
(lambda (_char) (if (clojure-in-docstring-p) 'do-indent))))
553+
(lambda (_char) (if (clojure-in-docstring-p) 'do-indent)))
554+
;; integration with project.el
555+
(add-hook 'project-find-functions #'clojure-project-dir))
554556

555557
(defcustom clojure-verify-major-mode t
556558
"If non-nil, warn when activating the wrong `major-mode'."

0 commit comments

Comments
 (0)