summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-05-24 10:56:43 +0200
committerAlan Pearce2017-05-24 10:56:43 +0200
commit8830fc2affb29bdc47252ee9ef7a80b35b59344a (patch)
tree2e274e173d6e7e6e20eca9d727ae3a4a4a9133a6
parent02b31add360e8ecb529683f0c476b6627eae933f (diff)
downloadnixfiles-8830fc2affb29bdc47252ee9ef7a80b35b59344a.tar.lz
nixfiles-8830fc2affb29bdc47252ee9ef7a80b35b59344a.tar.zst
nixfiles-8830fc2affb29bdc47252ee9ef7a80b35b59344a.zip
Emacs: Fix error customising faces
-rw-r--r--emacs/.emacs.d/init.org11
1 files changed, 6 insertions, 5 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index b28a06de..ac42949e 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -173,11 +173,12 @@ Eziam looks nice, too
   :config (progn
             (setq eziam-scale-headings nil)
             (load-theme 'eziam-light t)
-            (set-face-underline 'js2-function-call nil)
-            (set-face-bold 'font-lock-keyword-face nil)
-            (set-face-foreground 'git-gutter-fr:added "#96a4ab")
-            (set-face-foreground 'git-gutter-fr:modified "#96a4ab")
-            (set-face-foreground 'git-gutter-fr:deleted "#96a4ab")))
+            (custom-theme-set-faces 'user
+                                    '(js2-function-call ((t (:underline nil))))
+                                    '(font-lock-keyword-face ((t (:weight normal))))
+                                    '(git-gutter-fr:added ((t (:foreground "#96a4ab"))))
+                                    '(git-gutter-fr:modified ((t (:foreground "#96a4ab"))))
+                                    '(git-gutter-fr:deleted ((t (:foreground "#96a4ab")))))))
 #+END_SRC
 
 Highlighting quasi-quoted expressions in lisps is quite useful, but I