Skip to content

Commit 9225d3b

Browse files
committed
Detect auto-mode for dune-project files in emacs
This lets emacs automatically switch to dune-mode when visiting a dune-project file. Signed-off-by: Shon Feder <shon.feder@gmail.com>
1 parent 74228c8 commit 9225d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor-integration/emacs/dune.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ For customization purposes, use `dune-mode-hook'."
395395

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

400400

401401
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

0 commit comments

Comments
 (0)