Can't launch `lein` REPL in Emacs

后端 未结 2 1965
感动是毒
感动是毒 2021-02-13 01:26

In Emacs, when using clojure-mode, I ought to be able to launch a REPL with C-c C-z. Whenever I try, though, I get the error:

Searching         


        
2条回答
  •  故里飘歌
    2021-02-13 02:13

    Ah! The PATH environment variable isn't the end-all and be-all of emacs search paths. There's also the "exec-path". It apparently does mostly the same thing but not exactly.

    Anyway, adding:

    (add-to-list 'exec-path "/usr/local/bin")
    

    To my .emacs.d/init.el (or .emacs if that's how you roll) cleared things up for me. The doc linked above suggests something a little more comprehensive, like:

    (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
    (setq exec-path (append exec-path '("/usr/local/bin")))
    

    I'd try the (simpler) add-to-list, first. But YMMV.

提交回复
热议问题