1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

add multiple and eval :custom-face usage

This commit follows suggestion at https://github.com/jwiegley/use-package/issues/696, https://github.com/jwiegley/use-package/issues/821
This commit is contained in:
Naoya Yamashita 2020-08-21 15:15:34 +09:00
parent 10c6400d34
commit 215dd35e49

View file

@ -1147,6 +1147,19 @@
(custom-set-faces (backquote (foo ((t (:background "#e4edfc"))))))
(require 'foo nil nil))))
(ert-deftest use-package-test/:custom-face-2 ()
(match-expansion
(use-package example
:custom-face
(example-1-face ((t (:foreground "LightPink"))))
(example-2-face ((t (:foreground "LightGreen")))))
`(progn
(custom-set-faces
(backquote (example-1-face ((t (:foreground "LightPink"))))))
(custom-set-faces
(backquote (example-2-face ((t (:foreground "LightGreen"))))))
(require 'example nil nil))))
(ert-deftest use-package-test/:init-1 ()
(match-expansion
(use-package foo :init (init))