]> git.eshelyaron.com Git - emacs.git/commitdiff
add multiple and eval :custom-face usage
authorNaoya Yamashita <conao3@gmail.com>
Fri, 21 Aug 2020 06:15:34 +0000 (15:15 +0900)
committerNaoya Yamashita <conao3@gmail.com>
Fri, 21 Aug 2020 06:15:34 +0000 (15:15 +0900)
This commit follows suggestion at https://github.com/jwiegley/use-package/issues/696, https://github.com/jwiegley/use-package/issues/821

test/lisp/use-package/use-package-tests.el

index 42bf07453b40b1e3cbfd73be0d51569addd39d14..b3080b5dd3db163d9399eb0017535f959882c0a3 100644 (file)
       (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))