summary refs log tree commit diff stats
path: root/machines/bob.el
diff options
context:
space:
mode:
Diffstat (limited to 'machines/bob.el')
-rw-r--r--machines/bob.el69
1 files changed, 0 insertions, 69 deletions
diff --git a/machines/bob.el b/machines/bob.el deleted file mode 100644 index a408e5c..0000000 --- a/machines/bob.el +++ /dev/null
@@ -1,69 +0,0 @@
1;;; bob.el --- Customizations for "bob" -*- lexical-binding: t; -*-
2
3;;; Commentary:
4
5;;; Code:
6
7(require 'acdw)
8(require 'machine)
9
10(defcustom +bob-face-plist
11 '( :dejavu ("DejaVu Sans Mono" "DejaVu Sans")
12 :iosevka ("Iosevka Comfy Wide" "Iosevka Comfy Duo")
13 :plex ("IBM Plex Mono" "IBM Plex Serif")
14 :go/djv ("Go Mono" "DejaVu Sans")
15 :tt (("TT2020Base" 120) "TT2020 Base Style E") ; no italic
16 :courier ("Courier Prime Code" "Courier Prime")
17 :gaegu (("Gaegu" 140) "Gaegu") ; no italic
18 :comic (("Comic Code" 100) "Comic Code")
19 :comic/fantasque (("Comic Code" 100) "Fantasque Sans Mono")
20 :terminus (("Terminus (TTF)" 120) "Terminus (TTF)")
21 :cmu (("CMU Typewriter Text" 160) "CMU Concrete")
22 :apl (("APL386 Unicode" 120) "Comic Code")
23 )
24 "A plist of possible font combinations.")
25
26(defcustom +bob-face-pair :comic ;; (+bob-set-faces)
27 "The index of `+bob-face-pairs' to use.")
28
29(defun +bob-set-faces (&rest _)
30 (let* ((face-pair (plist-get +bob-face-plist +bob-face-pair))
31 (base-face (if (stringp (car face-pair))
32 (car face-pair)
33 (caar face-pair)))
34 (var-face (if (stringp (cadr face-pair))
35 (cadr face-pair)
36 (caadr face-pair)))
37 (base-size (or (ignore-errors (cadar face-pair))
38 100))
39 (var-size (or (ignore-errors (cadadr face-pair))
40 1.0))
41 (italic-face nil)
42 ;; (bold-face nil)
43 (mono-face nil))
44 (+set-faces
45 `((default
46 :family ,base-face
47 :height ,base-size
48 :weight regular)
49 (bold :family ,(or (bound-and-true-p bold-face) base-face)
50 :weight extra-bold)
51 (italic :family ,(or (bound-and-true-p italic-face) base-face)
52 :weight normal
53 :slant italic)
54 (fixed-pitch :family ,(or (bound-and-true-p mono-face) base-face)
55 :height 1.0)
56 (variable-pitch
57 :family ,(or var-face base-face)
58 :height ,var-size
59 ;; :weight medium
60 )
61 ;; (org-italic
62 ;; :family ,(or var-face base-face)
63 ;; :slant italic)
64 ))))
65
66;; Other ideas: [[https://twitter.com/NPRougier/status/1488570192561160195][from Nic Rougier]]
67(add-hook 'machine-after-load-theme-hook #'+bob-set-faces)
68
69;; bob.el ends here (+bob-set-faces)