<commit_before>(use-package tuareg
  :config
  ;; Don't move past the expression after evaluating. I usually want
  ;; to repeatedly eval the same expression.
  (setq tuareg-skip-after-eval-phrase nil))<commit_msg>Configure merlin and merlin-eldoc<commit_after>(use-package tuareg
  :config
  ;; Don't move past the expression after evaluating. I usually want
  ;; to repeatedly eval the same expression.
  (setq tuareg-skip-after-eval-phrase nil))

(use-package merlin
  :config
  (define-key merlin-mode-map (kbd "M-.") #'merlin-locate)
  (define-key merlin-mode-map (kbd "M-,") #'merlin-pop-stack))

(add-hook 'tuareg-mode-hook #'merlin-mode)

;; Show types in eldoc, and highlight other references to the same
;; symbol.
(add-hook 'merlin-mode-hook #'merlin-eldoc-setup)

;; merlin-eldoc is more precise than highlight-symbol-mode, because it
;; understands shadowing.
(add-hook 'merlin-mode-hook
          (function (lambda () (highlight-symbol-mode -1))))
{'fraction_non_alphanumeric': 0.13007284079084286, 'fraction_numerical': 0.001040582726326743, 'mean_word_length': 4.172043010752688, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3726187', 'n_tokens_mistral': 326, 'n_tokens_neox': 316, 'n_words': 93}