From fc1e06a1a913006f4b7ee4d3de782ecea2f23042 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 15 Oct 2023 23:46:31 +0200 Subject: chore: fix evaluation of cider middlewares in dir-locals --- .dir-locals.el | 7 +++---- 1 file 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")))))) -- cgit v1.2.3