theming: refactor example
This commit is contained in:
parent
37de114ea5
commit
b769756f6d
|
@ -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
|
|
||||||
;;... other vars maybe
|
|
||||||
theming-modifications
|
|
||||||
'((monokai
|
'((monokai
|
||||||
;; Font locking
|
;; Font locking
|
||||||
(font-lock-comment-face :slant italic)
|
(font-lock-comment-face :slant italic)
|
||||||
(web-mode-html-attr-name-face
|
(web-mode-html-attr-name-face :inherit font-lock-variable-name-face
|
||||||
:inherit font-lock-variable-name-face :foreground nil)
|
:foreground nil)
|
||||||
|
|
||||||
;; Modeline
|
;; Modeline
|
||||||
(powerline-active1 :box (:color "#999999" :line-width 1 :style released-button)
|
(powerline-active1 :box (:color "#999999"
|
||||||
:background "#5a5a5a"))))
|
: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
|
||||||
|
|
Loading…
Reference in a new issue