help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Evaluate regexp-opt in :mode field of use-package


From: Joe Riel
Subject: Evaluate regexp-opt in :mode field of use-package
Date: Thu, 28 Apr 2016 22:03:24 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]