Merge pull request #86 from lunaryorn/improve-emacs-setup-instructions

Improve Emacs setup instructions
This commit is contained in:
Jérémie Dimino 2014-08-22 13:07:34 +01:00
commit 8c073bc7f5
1 changed files with 4 additions and 2 deletions

View File

@ -120,10 +120,12 @@ you can copy-paste this code into you `~/.emacs` file:
(setenv (car var) (cadr var))) (setenv (car var) (cadr var)))
;; Update the emacs path ;; Update the emacs path
(setq exec-path (split-string (getenv "PATH") path-separator)) (setq exec-path (append (parse-colon-path (getenv "PATH"))
(list exec-directory)))
;; Update the emacs load path ;; Update the emacs load path
(push (concat (getenv "OCAML_TOPLEVEL_PATH") "/../../share/emacs/site-lisp") load-path) (add-to-list 'load-path (expand-file-name "../../share/emacs/site-lisp"
(getenv "OCAML_TOPLEVEL_PATH")))
;; Automatically load utop.el ;; Automatically load utop.el
(autoload 'utop "utop" "Toplevel for OCaml" t) (autoload 'utop "utop" "Toplevel for OCaml" t)