* Evaluate regexp-opt in :mode field of use-package
@ 2016-04-29 5:03 Joe Riel
0 siblings, 0 replies; only message in thread
From: Joe Riel @ 2016-04-29 5:03 UTC (permalink / raw)
To: Help GNU Emacs
Is there a clever way to do the equivalent of
(use-package
:mode (((concat "\\." (regexp-opt "ext1" "ext2") "\\'") . some-mode))
That won't work because use-package is a macro and doesn't
evaluate the (concat ...) to a string, which it expects.
--
Joe Riel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-29 5:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-29 5:03 Evaluate regexp-opt in :mode field of use-package Joe Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).