ocaml: Remove outdated config of utop
The old config overrides `exec-path` blindly, updated as per the instructions on the official site of `utop`.
This commit is contained in:
parent
1fdc2f8fe2
commit
149f6c0530
|
@ -97,16 +97,9 @@
|
||||||
(spacemacs/register-repl 'utop 'utop "ocaml"))
|
(spacemacs/register-repl 'utop 'utop "ocaml"))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
;; Setup environment variables using opam
|
|
||||||
(if (executable-find "opam")
|
(if (executable-find "opam")
|
||||||
(let ((vars (car (read-from-string
|
(setq utop-command "opam config exec -- utop -emacs")
|
||||||
(shell-command-to-string "opam config env --sexp")))))
|
|
||||||
(dolist (var vars)
|
|
||||||
(setenv (car var) (cadr var))))
|
|
||||||
(spacemacs-buffer/warning "Cannot find \"opam\" executable."))
|
(spacemacs-buffer/warning "Cannot find \"opam\" executable."))
|
||||||
;; Update the emacs path
|
|
||||||
(setq exec-path (append (parse-colon-path (getenv "PATH"))
|
|
||||||
(list exec-directory)))
|
|
||||||
|
|
||||||
(defun spacemacs/utop-eval-phrase-and-go ()
|
(defun spacemacs/utop-eval-phrase-and-go ()
|
||||||
"Send phrase to REPL and evaluate it and switch to the REPL in
|
"Send phrase to REPL and evaluate it and switch to the REPL in
|
||||||
|
|
Loading…
Reference in New Issue