theming: refactor example

This commit is contained in:
syl20bnr 2017-04-18 00:23:16 -04:00
parent 37de114ea5
commit b769756f6d

View file

@ -4,7 +4,7 @@
- [[#description][Description]] - [[#description][Description]]
- [[#install][Install]] - [[#install][Install]]
- [[#usage][Usage]] - [[#usage][Usage]]
- [[#example-based-on-thebbs-much-more-broad-gist][Example based on TheBB's (much more broad) gist]] - [[#example][Example]]
- [[#attributes][Attributes]] - [[#attributes][Attributes]]
- [[#faces][Faces]] - [[#faces][Faces]]
- [[#headers][Headers]] - [[#headers][Headers]]
@ -29,31 +29,24 @@ of the following form:
(face2 attributes...) (face2 attributes...)
...) ...)
...) ...)
https://gist.github.com/TheBB/f25a607b9bda4d5861f2#file-init-el-L274
#+end_src #+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 #+begin_src lisp
;; ~/.spacemacs
;;...
(defun dotspacemacs/user-init () (defun dotspacemacs/user-init ()
;;... (setq theming-modifications
(setq-default '((monokai
;;... other vars maybe ;; Font locking
theming-modifications (font-lock-comment-face :slant italic)
'((monokai (web-mode-html-attr-name-face :inherit font-lock-variable-name-face
;; Font locking :foreground nil)
(font-lock-comment-face :slant italic) ;; Modeline
(web-mode-html-attr-name-face (powerline-active1 :box (:color "#999999"
:inherit font-lock-variable-name-face :foreground nil) :line-width 1
:style released-button)
;; Modeline :background "#5a5a5a")))))
(powerline-active1 :box (:color "#999999" :line-width 1 :style released-button)
:background "#5a5a5a"))))
)
#+end_src #+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 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 appropriate theme is loaded. To update without changing the theme, use ~SPC SPC