From b769756f6d1704da7557740f112ff84b4e6aec1f Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Tue, 18 Apr 2017 00:23:16 -0400 Subject: [PATCH] theming: refactor example --- layers/+themes/theming/README.org | 35 +++++++++++++------------------ 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/layers/+themes/theming/README.org b/layers/+themes/theming/README.org index f85295d31..0f3e4e423 100644 --- a/layers/+themes/theming/README.org +++ b/layers/+themes/theming/README.org @@ -4,7 +4,7 @@ - [[#description][Description]] - [[#install][Install]] - [[#usage][Usage]] - - [[#example-based-on-thebbs-much-more-broad-gist][Example based on TheBB's (much more broad) gist]] + - [[#example][Example]] - [[#attributes][Attributes]] - [[#faces][Faces]] - [[#headers][Headers]] @@ -29,31 +29,24 @@ of the following form: (face2 attributes...) ...) ...) - - - https://gist.github.com/TheBB/f25a607b9bda4d5861f2#file-init-el-L274 #+end_src -* Example based on TheBB's (much more broad) [[https://gist.github.com/TheBB/f25a607b9bda4d5861f2#file-init-el-L274][gist]] +** Example #+begin_src lisp - ;; ~/.spacemacs - ;;... (defun dotspacemacs/user-init () - ;;... - (setq-default - ;;... other vars maybe - theming-modifications - '((monokai - ;; Font locking - (font-lock-comment-face :slant italic) - (web-mode-html-attr-name-face - :inherit font-lock-variable-name-face :foreground nil) - - ;; Modeline - (powerline-active1 :box (:color "#999999" :line-width 1 :style released-button) - :background "#5a5a5a")))) - ) + (setq theming-modifications + '((monokai + ;; Font locking + (font-lock-comment-face :slant italic) + (web-mode-html-attr-name-face :inherit font-lock-variable-name-face + :foreground nil) + ;; Modeline + (powerline-active1 :box (:color "#999999" + :line-width 1 + :style released-button) + :background "#5a5a5a"))))) #+end_src +Source: [[https://gist.github.com/TheBB/f25a607b9bda4d5861f2#file-init-el-L274][gist]] This will apply the given attributes to the relevant faces whenever the appropriate theme is loaded. To update without changing the theme, use ~SPC SPC