Skip to content

Commit

Permalink
Add meson.options to auto-mode-alist
Browse files Browse the repository at this point in the history
`meson.options` has been supported since version 1.1 of Meson (and seems
to be preferred over `meson_options.txt`, according to the official
documentation).
  • Loading branch information
whame committed Jun 1, 2024
1 parent c8f4fbf commit 0449c64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,9 @@ or does not contain IDENTIFIER."

;;;###autoload
(progn
(add-to-list 'auto-mode-alist '("/meson\\(\\.build\\|_options\\.txt\\)\\'" . meson-mode))
(add-to-list
'auto-mode-alist
'("/meson\\(\\.build\\|_options\\.txt\\|\\.options\\)\\'" . meson-mode))
(eval-after-load 'compile

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (26.1)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (26.2)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (26.3)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (27.1)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (27.2)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (28.1)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (28.2)

`eval-after-load' is for use in configurations, and should rarely be used in packages.

Check warning on line 1007 in meson-mode.el

View workflow job for this annotation

GitHub Actions / build (snapshot)

`eval-after-load' is for use in configurations, and should rarely be used in packages.
'(progn
(add-to-list 'compilation-error-regexp-alist 'meson)
Expand Down

0 comments on commit 0449c64

Please sign in to comment.