Skip to content

Commit

Permalink
Detect auto-mode for dune-project files in emacs
Browse files Browse the repository at this point in the history
This lets emacs automatically switch to dune-mode when visiting a
dune-project file.

Signed-off-by: Shon Feder <[email protected]>
  • Loading branch information
shonfeder committed Feb 13, 2021
1 parent 74228c8 commit 9225d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor-integration/emacs/dune.el
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ For customization purposes, use `dune-mode-hook'."

;;;###autoload
(add-to-list 'auto-mode-alist
'("\\(?:\\`\\|/\\)dune\\(?:\\.inc\\)?\\'" . dune-mode))
'("\\(?:\\`\\|/\\)dune\\(?:\\.inc\|-project\\)?\\'" . dune-mode))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 9225d3b

Please sign in to comment.