Emacs: OCaml setup

This commit is contained in:
Joseph Ferano 2024-07-11 09:38:22 +07:00
parent 6e221b4ed7
commit 50f2ebf213

View File

@ -229,6 +229,11 @@ Finish up
org-download org-download
valign valign
;; Programming Languages ;; Programming Languages
tuareg
dune
merlin
merlin-eldoc
utop
highlight-quoted highlight-quoted
rustic rustic
ob-rust ob-rust
@ -2446,8 +2451,8 @@ it doesn't close it.
(require 'tuareg) (require 'tuareg)
(require 'dune) (require 'dune)
(require 'utop) (require 'utop)
(require 'merlin) ;; (require 'merlin)
(require 'merlin-eldoc) ;; (require 'merlin-eldoc)
;; Might be worth checking out, depeding on whether we stick with flycheck or not ;; Might be worth checking out, depeding on whether we stick with flycheck or not
;; (elpaca 'flycheck-ocaml) ;; (elpaca 'flycheck-ocaml)
;; Also check this out, see if it adds anything ;; Also check this out, see if it adds anything
@ -2464,6 +2469,7 @@ it doesn't close it.
(substring (shell-command-to-string (substring (shell-command-to-string
"opam config var share 2> /dev/null") 0 -1)) "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 'load-path (expand-file-name "emacs/site-lisp" opam-share))
(add-to-list 'exec-path "/home/joe/.opam/default/bin/")
#+end_src #+end_src
We won't use the LSP server but rather directly talk to Merlin, since I guess LSP just wraps Merlin We won't use the LSP server but rather directly talk to Merlin, since I guess LSP just wraps Merlin