From 5e8080c5ec7321954315e46bacbf856ec53bb76e Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 12 Sep 2024 14:53:13 +0200 Subject: [PATCH] emacs: Add OCaml support --- home-manager/modules/emacs/config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 5236994..3934246 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -1646,6 +1646,24 @@ Highlighting for device tree configuration. (use-package dts-mode) #+end_src +*** OCaml + +[[https://github.com/ocaml/tuareg][Tuareg]] is the recommended OCaml mode + +#+begin_src emacs-lisp + (use-package tuareg) +#+end_src + +[[https://github.com/ocaml/merlin][Merlin]] adds context-sensitive completion + +#+begin_src emacs-lisp + (use-package merlin + :init (setq merlin-command "ocamlmerlin") + :hook (tuareg-mode . merlin-mode)) +#+end_src + + + * Org ** Main org setup