Browse Source

Proper use of face customization functions.

Eiyeron Fulmincendii 5 years ago
parent
commit
ed8d03159e
1 changed files with 24 additions and 17 deletions
  1. 24 17
      config.org

+ 24 - 17
config.org

@@ -62,21 +62,26 @@ Now the font proper selection
       (variable-font (chicken/select-first-available-font '("PragmataPro Liga" "PragmataPro" "Segoe UI")))
       (variable-font (chicken/select-first-available-font '("PragmataPro Liga" "PragmataPro" "Segoe UI")))
       (unicode-font (chicken/select-first-available-font '("PragmataPro Liga" "PragmataPro" "Segoe UI")))
       (unicode-font (chicken/select-first-available-font '("PragmataPro Liga" "PragmataPro" "Segoe UI")))
       (serif-font (chicken/select-first-available-font '("Iosevka Slab" "Courrier New" "Courrier New"))))
       (serif-font (chicken/select-first-available-font '("Iosevka Slab" "Courrier New" "Courrier New"))))
-  (setq doom-font (font-spec
-                   :family code-font
-                   :size base-size)
-        doom-variable-pitch-font (font-spec
-                                  :family variable-font
-                                  :size base-size)
-        doom-unicode-font (font-spec
-                           :family unicode-font
-                           :size base-size)
-        doom-big-font (font-spec
-                       :family code-font
-                       :size (* base-size 2))
-        doom-serif-font (font-spec
-                         :family serif-font
-                         :size base-size)))
+  (setq doom-font
+        (font-spec
+         :family code-font
+         :size base-size)
+        doom-variable-pitch-font
+        (font-spec
+         :family variable-font
+         :size base-size)
+        doom-unicode-font
+        (font-spec
+         :family unicode-font
+         :size base-size)
+        doom-big-font
+        (font-spec
+         :family code-font
+         :size (* base-size 2))
+        doom-serif-font
+        (font-spec
+         :family serif-font
+         :size base-size)))
 #+END_SRC
 #+END_SRC
 
 
 A note about the serif font: I can't set the styling set for a given font on
 A note about the serif font: I can't set the styling set for a given font on
@@ -98,7 +103,8 @@ dividers (located in the ~window-divider~ group) are inheriting from the
 ~vertical-border~ face, so editing the later allows me to quickly change the
 ~vertical-border~ face, so editing the later allows me to quickly change the
 border color if needed.
 border color if needed.
 #+BEGIN_SRC emacs-lisp :tangle no
 #+BEGIN_SRC emacs-lisp :tangle no
-(set-face-attribute 'vertical-border nil :foreground "red")
+(custom-set-faces!
+  '(vertical-border :foreground "red"))
 #+END_SRC
 #+END_SRC
 *** STRT Doom Modeline
 *** STRT Doom Modeline
 I'm trying to slightly tweak the modeline to show some info like the word count
 I'm trying to slightly tweak the modeline to show some info like the word count
@@ -128,7 +134,8 @@ visual noise.
 I like my line numbers in italic, for no sensible reason. It just looks good to
 I like my line numbers in italic, for no sensible reason. It just looks good to
 me.
 me.
 #+begin_src emacs-lisp
 #+begin_src emacs-lisp
-(set-face-italic 'line-number t)
+(custom-set-faces!
+ '(line-number :slant italic))
 #+end_src
 #+end_src
 * Python
 * Python
 ** Python-x
 ** Python-x