Skip to content

Commit

Permalink
Detect auto-mode for dune-project files in emacs (#4222)
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 authored Feb 13, 2021
1 parent 5506bc5 commit e156482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Unreleased
- Improve location of variables and macros in error messages (#4205,
@jeremiedimino)

- Auto-detect `dune-project` files as `dune` files in Emacs (#4222, @shonfeder)

2.8.2 (21/01/2021)
------------------

Expand Down
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 e156482

Please sign in to comment.