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:
Jeremy Bi 2016-07-05 20:52:20 +08:00 committed by syl20bnr
parent 1fdc2f8fe2
commit 149f6c0530
1 changed files with 1 additions and 8 deletions

View File

@ -97,16 +97,9 @@
(spacemacs/register-repl 'utop 'utop "ocaml"))
:config
(progn
;; Setup environment variables using opam
(if (executable-find "opam")
(let ((vars (car (read-from-string
(shell-command-to-string "opam config env --sexp")))))
(dolist (var vars)
(setenv (car var) (cadr var))))
(setq utop-command "opam config exec -- utop -emacs")
(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 ()
"Send phrase to REPL and evaluate it and switch to the REPL in