Expanded theming README file with an example
This commit is contained in:
parent
7a6a2d0abb
commit
36da2f7daa
|
@ -8,6 +8,7 @@
|
||||||
- [[#attributes][Attributes]]
|
- [[#attributes][Attributes]]
|
||||||
- [[#faces][Faces]]
|
- [[#faces][Faces]]
|
||||||
- [[#headers][Headers]]
|
- [[#headers][Headers]]
|
||||||
|
- [[#example-1][Example]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
This layer allows for a simple way of modifying themes.
|
This layer allows for a simple way of modifying themes.
|
||||||
|
@ -18,8 +19,10 @@ add =theming= to the existing =dotspacemacs-configuration-layers= list in this
|
||||||
file.
|
file.
|
||||||
|
|
||||||
* Usage
|
* Usage
|
||||||
To use this layer, set the value of =theming-modifications=. It should be a list
|
|
||||||
of the following form:
|
To use this layer, set the value of =theming-modifications= (a good place is
|
||||||
|
inside your =.spacemacs= in =dotspacemacs/user-init()=).
|
||||||
|
It should be a list of the following form:
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
((theme1 (face1 attributes...)
|
((theme1 (face1 attributes...)
|
||||||
|
@ -103,3 +106,22 @@ the symbol =all= to apply it on all themes.
|
||||||
headings to give them the same size as the rest of the text
|
headings to give them the same size as the rest of the text
|
||||||
- =theming-headings-bold= :: sets the =:weight= attribute to bold on all
|
- =theming-headings-bold= :: sets the =:weight= attribute to bold on all
|
||||||
headings
|
headings
|
||||||
|
|
||||||
|
|
||||||
|
* Example
|
||||||
|
|
||||||
|
An example of how to set the default font colour to be black in a custom theme leuven:
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(defun dotspacemacs/user-init ()
|
||||||
|
|
||||||
|
; custom theme modification - overriding default font colour
|
||||||
|
(setq-default
|
||||||
|
theming-modifications
|
||||||
|
'((leuven
|
||||||
|
(default :foreground "#000000")
|
||||||
|
))
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue