summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-08-30 07:40:04 -0700
committerFranck Cuny <franck@fcuny.net>2024-08-30 07:40:04 -0700
commit25322d0c6588ad80d656c8e234c1662757b61c73 (patch)
tree9cf5624fe4a6dbc9f8a4dc2bdb222cfb7d5add37
parentdrop breadcrumb (diff)
downloademacs.d-25322d0c6588ad80d656c8e234c1662757b61c73.tar.gz
use the ef-theme
-rw-r--r--config/init-ui.el27
1 files changed, 20 insertions, 7 deletions
diff --git a/config/init-ui.el b/config/init-ui.el
index ad43161..61e4070 100644
--- a/config/init-ui.el
+++ b/config/init-ui.el
@@ -71,13 +71,26 @@
                     :font "Monaspace Radon"
                     :height 150)
 
-(add-to-list 'default-frame-alist '(background-color . "#FFFCF6"))
-(add-to-list 'default-frame-alist '(foreground-color . "#101010"))
-
-(custom-set-faces
- ;; make sure comments are distinct from the rest
- `(font-lock-comment-face ((t (:font "Monaspace Radon" :italic t :bold t :height 1.0 :background "#eeefff" :foreground "#7f0000"))))
- `(font-lock-doc-face     ((t (:font "Monaspace Radon" :italic t :bold t :height 1.0 :background "#eeefff" :foreground "#7f0000")))))
+(use-package ef-themes
+  :ensure t
+  :custom
+  (ef-themes-region '(intense no-extend neutral))
+  (ef-themes-variable-pitch-ui t)
+  (ef-themes-mixed-fonts t)
+  (ef-themes-disable-other-themes t)
+  :config
+  (ef-themes-select 'ef-light)
+  (setq ef-themes-to-toggle '(ef-cyprus ef-deuteranopia-light))
+  (setq ef-themes-headings ; read the manual's entry or the doc string
+        '((0 . (variable-pitch light 1.9))
+          (1 . (variable-pitch light 1.8))
+          (2 . (variable-pitch regular 1.7))
+          (3 . (variable-pitch regular 1.6))
+          (4 . (variable-pitch regular 1.5))
+          (5 . (variable-pitch 1.4)) ; absence of weight means `bold'
+          (6 . (variable-pitch 1.3))
+          (7 . (variable-pitch 1.2))
+          (t . (variable-pitch 1.1)))))
 
 (provide 'init-ui)
 ;;; init-ui.el ends here