diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-10-15 23:46:31 +0200 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-10-15 23:46:31 +0200 |
commit | fc1e06a1a913006f4b7ee4d3de782ecea2f23042 (patch) | |
tree | d0a1348d98f95719891372a11ae72311333a7c6f | |
parent | 1a1d04ae1d7194d8f2d065efa5be6d1b8bbd321a (diff) |
chore: fix evaluation of cider middlewares in dir-locals
-rw-r--r-- | .dir-locals.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index 022f822..3b34dbc 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -7,10 +7,9 @@ (cider-default-cljs-repl . custom) (cider-custom-cljs-repl-init-form . "(do (require '[shadow.cljs.devtools.api :as shadow])\n(require '[shadow.cljs.devtools.server :as server])\n(server/start!)\n(shadow/watch :tubo)\n(shadow/nrepl-select :tubo))") (cider-merge-sessions . :project) - (eval . (if - (not - (boundp 'cider-jack-in-nrepl-middlewares)) - (require 'cider) + (eval . (progn + (unless (boundp 'cider-jack-in-nrepl-middlewares) + (require 'cider)) (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares) (add-to-list 'cider-jack-in-nrepl-middlewares "cider.nrepl/cider-middleware") (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware")))))) |