Skip to content

Commit

Permalink
feature(emacs): auto-detect dune-workspace files as dune files (#…
Browse files Browse the repository at this point in the history
…7061)

Signed-off-by: Idir Lankri <ilankri@protonmail.com>
  • Loading branch information
ilankri authored Feb 13, 2023
1 parent 2db9840 commit b9c2703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Unreleased
- Add `(using ctypes 0.3)`. When used, paths in `(ctypes)` are interpreted
relative to where the stanza is defined. (#6883, fixes #5325, @emillon)

- Auto-detect `dune-workspace` files as `dune` files in Emacs (#7061,
@ilankri)

3.6.2 (2022-12-21)
------------------

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\\|\\-project\\)?\\'" . dune-mode))
'("\\(?:\\`\\|/\\)dune\\(?:\\.inc\\|\\-project\\|\\-workspace\\)?\\'" . dune-mode))


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

0 comments on commit b9c2703

Please sign in to comment.