From 94f9d05c3a701a1426d976e3061430fbb22be5b9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 27 Jun 2017 22:58:38 +0200 Subject: [PATCH] lang/ocaml: refactor --- modules/lang/ocaml/config.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/lang/ocaml/config.el b/modules/lang/ocaml/config.el index 1a614502f..e10a51ebf 100644 --- a/modules/lang/ocaml/config.el +++ b/modules/lang/ocaml/config.el @@ -1,14 +1,10 @@ -;;; lang/ocaml/config.el +;;; lang/ocaml/config.el -*- lexical-binding: t; -*- (def-package! tuareg - :mode (("\\.ml$" . tuareg-mode) - ("\\.mll$" . tuareg-mode) - ("\\.mly$" . tuareg-mode)) - :config -) + :mode ("\\.ml[ly]?$" . tuareg-mode)) + (def-package! merlin :after tuareg :config - (add-hook! 'tuareg-mode-hook #'merlin-mode) -) + (add-hook 'tuareg-mode-hook #'merlin-mode))