Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tuareg-opam.el
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ See `prettify-symbols-alist' for more information.")
;;;; Linting

(require 'flymake)
(require 'flymake-proc nil :noerror)

(defalias 'tuareg-opam--flymake-proc-init-create-temp-buffer-copy
(if (fboundp 'flymake-proc-init-create-temp-buffer-copy)
Expand Down Expand Up @@ -317,8 +318,9 @@ characters \\([0-9]+\\)-\\([0-9]+\\): +\\([^\n]*\\)$"
(defvar tuareg-opam--flymake-proc-allowed-file-name-masks)
(defvar tuareg-opam--flymake-proc-err-line-patterns)

(push tuareg-opam--allowed-file-name-masks
tuareg-opam--flymake-proc-allowed-file-name-masks)
(when (boundp 'tuareg-opam--flymake-proc-allowed-file-name-masks)
(push tuareg-opam--allowed-file-name-masks
tuareg-opam--flymake-proc-allowed-file-name-masks))
(setq-local tuareg-opam--flymake-proc-err-line-patterns
tuareg-opam--err-line-patterns)
(when (and tuareg-opam-flymake buffer-file-name)
Expand Down