blob: 0a79d2ba799b8511839ce5a1dfd27479b61acaf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
;; -*- lexical-binding: t; -*-
;;;; variable-pitch fonts
(defun bd/enable-variable-pitch-exempt ()
"Text modes to exempt from variable pitch fonts."
(unless (derived-mode-p 'latex-mode 'mhtml-mode 'nxml-mode 'yaml-mode)
(variable-pitch-mode 1)))
(defvar bd/enable-variable-pitch-in-hooks
'(text-mode-hook)
"List of hook symbols to add `variable-pitch-mode'
to.")
(mapc
(lambda (hook)
(add-hook hook #'bd/enable-variable-pitch-exempt))
bd/enable-variable-pitch-in-hooks)
(set-face-attribute 'variable-pitch nil
:family "Dejavu Serif")
;;;; colors
(use-package ef-themes
:demand t
:config
;; Disable all other themes to avoid awkward blending:
(mapc #'disable-theme custom-enabled-themes)
:custom
(ef-themes-mixed-fonts t)
(ef-themes-variable-pitch-ui t)
(ef-themes-headings
'((0 variable-pitch bold 1.6)
(1 variable-pitch bold 1.5)
(2 variable-pitch regular 1.4)
(3 variable-pitch regular 1.2)
(t variable-pitch regular 1.0)))
(ef-themes-to-toggle '(ef-winter ef-summer))
(ef-themes-common-palette-overrides
'((bg-mode-line bg-main)
(fg-mode-line fg-main)
(bg-alt bg-main)))
(ef-winter-palette-overrides
'((bg-main "#000000"))))
(load-theme 'ef-dark :no-confirm)
(provide 'bd--themes)
|