lang/ocaml: start lsp as late as possible

Gives the user more opportunity to customize lsp et co with
file/dir-local variables or mode hooks.
This commit is contained in:
Henrik Lissner 2019-07-08 21:24:36 +02:00
parent 17bd6e43c6
commit d0412b7f56
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,7 +1,8 @@
;;; lang/ocaml/config.el -*- lexical-binding: t; -*- ;;; lang/ocaml/config.el -*- lexical-binding: t; -*-
(when (featurep! +lsp) (when (featurep! +lsp)
(add-hook! (tuareg-mode reason-mode) #'lsp!)) (add-hook! (tuareg-mode-local-vars reason-mode-local-vars)
#'lsp!))
(after! tuareg (after! tuareg