Function: neocaml--register-with-eglot

neocaml--register-with-eglot is a natively compiled function defined in neocaml.el.

Signature

(neocaml--register-with-eglot)

Documentation

Register neocaml modes with eglot if loaded.

Source Code

;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
(defun neocaml--register-with-eglot ()
  "Register neocaml modes with eglot if loaded."
  (when (boundp 'eglot-server-programs)
    (add-to-list 'eglot-server-programs
                 '(((neocaml-mode :language-id "ocaml")
                    (neocaml-interface-mode
                     :language-id "ocaml.interface"))
                   "ocamllsp"))))