* 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.