Closed jasonhemann closed 1 year ago
Does the following not work for you?
(use-package foo
:mode ("\\.bar\\'"
"\\.baz\\'"))
This simple example associates files with extensions .bar
or .baz
with foo-mode
provided by the foo
package.
Ah. I have no doubt that would work. Adding an example like that to the documentation would close this issue for me
This has been fixed in the new use-package manual, now merged into Emacs itself: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=141fe8b827399057e2f854cd5e6b0c148c5fe12b
I'm therefore closing this issue.
Right now the docs for the
:mode
keyword show how to add a single regexp to theauto-word-alist
but don't show how to add multiple regexps.:mode
keyword arg several different regexps that all should be added to a single mode.At least at present, I can't find any of those examples listed in the
:mode
documentation.