diff --git a/layers/+themes/theming/config.el b/layers/+themes/theming/config.el index dc3c5326a..878445748 100644 --- a/layers/+themes/theming/config.el +++ b/layers/+themes/theming/config.el @@ -58,9 +58,3 @@ or the symbol `all'.") org-level-7 org-level-8) "List of header faces.") - -;; Apply theme customizations after any call to load-theme -(advice-add 'load-theme :after 'spacemacs//theming) - -;; Apply the initial customizations now, because load-theme has already been called -(spacemacs//theming spacemacs--cur-theme) diff --git a/layers/+themes/theming/packages.el b/layers/+themes/theming/packages.el new file mode 100644 index 000000000..bf171536a --- /dev/null +++ b/layers/+themes/theming/packages.el @@ -0,0 +1,19 @@ +;;; packages.el --- Theming Layer packages File for Spacemacs +;; +;; Copyright (c) 2012-2016 Sylvain Benner & Contributors +;; +;; Author: Sylvain Benner +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(defconst theming-packages + '((theming :location local))) + +(defun theming/init-theming () + ;; Apply theme customizations after any call to load-theme + (advice-add 'load-theme :after 'spacemacs//theming) + ;; Apply the initial customizations now, because load-theme has already been called + (spacemacs//theming spacemacs--cur-theme))