2

该项目如何figwheel-sidecar使用我的 Emacs 在我自己的机器上运行,以便我可以对其进行调试?

我试过了cider-jack-in,它可以工作,但是如何让clojurescript项目依赖它并让Emacs运行本地版本的figwheel-sidecar

4

1 回答 1

1

https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl#integration-with-emacscider

关键步骤

;; ~/.emacs.el or ~/.emacs.d/init.el

(require 'cider)
(setq cider-cljs-lein-repl
      "(do (require 'figwheel-sidecar.repl-api)
           (figwheel-sidecar.repl-api/start-figwheel!)
           (figwheel-sidecar.repl-api/cljs-repl))")

M-x cider-jack-in-clojurescript [RET]

于 2017-06-05T08:22:22.847 回答