Mac OSX, Emacs 24.2 and nrepl.el not working

后端 未结 4 663
孤独总比滥情好
孤独总比滥情好 2020-12-31 13:30

I\'m using nrepl.el, Emacs 24.2. My S.O version is OS X Lion 10.7.5.

Running the command [M-x] nrepl after start a REPL session through lein (:~ $

4条回答
  •  佛祖请我去吃肉
    2020-12-31 13:59

    I had to do this:

    ;; set the path as terminal path [http://lists.gnu.org/archive/html/help-gnu-emacs/2011-10/msg00237.html]
    (setq explicit-bash-args (list "--login" "-i"))
    
    ;; fix the PATH variable for GUI [http://clojure-doc.org/articles/tutorials/emacs.html#osx] 
    
    (defun set-exec-path-from-shell-PATH ()
      (let ((path-from-shell
             (shell-command-to-string "$SHELL -i -l -c 'echo $PATH'")))
        (setenv "PATH" path-from-shell)
        (setq exec-path (split-string path-from-shell path-separator))))
    
    (when window-system (set-exec-path-from-shell-PATH))
    

提交回复
热议问题