From 50f2ebf21355cd86a22ee573ad701481249dc29c Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 11 Jul 2024 09:38:22 +0700 Subject: [PATCH] Emacs: OCaml setup --- .config/emacs/init.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index c31b370..dcf9419 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -229,6 +229,11 @@ Finish up org-download valign ;; Programming Languages + tuareg + dune + merlin + merlin-eldoc + utop highlight-quoted rustic ob-rust @@ -2446,8 +2451,8 @@ it doesn't close it. (require 'tuareg) (require 'dune) (require 'utop) -(require 'merlin) -(require 'merlin-eldoc) +;; (require 'merlin) +;; (require 'merlin-eldoc) ;; Might be worth checking out, depeding on whether we stick with flycheck or not ;; (elpaca 'flycheck-ocaml) ;; Also check this out, see if it adds anything @@ -2464,6 +2469,7 @@ it doesn't close it. (substring (shell-command-to-string "opam config var share 2> /dev/null") 0 -1)) (add-to-list 'load-path (expand-file-name "emacs/site-lisp" opam-share)) +(add-to-list 'exec-path "/home/joe/.opam/default/bin/") #+end_src We won't use the LSP server but rather directly talk to Merlin, since I guess LSP just wraps Merlin