chore: updated emacs theming dc161d4a
Steve · 2026-10-07 22:37 3 file(s) · +204 −108
emacs/early-init.el +7 −0
15 15
(push '(background-color . "#121113") default-frame-alist)
16 16
(push '(foreground-color . "#c1c1c1") default-frame-alist)
17 17
18 +
;; macOS: blend the title bar into the frame background
19 +
(when (eq system-type 'darwin)
20 +
  (push '(ns-transparent-titlebar . t) default-frame-alist)
21 +
  (push '(ns-appearance . dark) default-frame-alist)
22 +
  (setq ns-use-proxy-icon nil
23 +
        frame-title-format nil))
24 +
18 25
;; Keep native-comp noise quiet
19 26
(setq native-comp-async-report-warnings-errors 'silent)
emacs/lisp/init-ui.el +2 −0
3 3
(when (display-graphic-p)
4 4
  (set-face-attribute 'default nil :family "BerkeleyMono Nerd Font" :height 140))
5 5
6 +
(use-package base16-theme)
7 +
6 8
(load-theme 'darkmatter t)
7 9
8 10
(provide 'init-ui)
emacs/themes/darkmatter-theme.el +195 −108
1 -
;;; darkmatter-theme.el --- Darkmatter -*- lexical-binding: t; -*-
1 +
;;; darkmatter-theme.el --- Darkmatter on base16 -*- lexical-binding: t; -*-
2 2
3 -
;; Standalone port of the doom-darkmatter theme (no doom-themes needed).
4 3
;; https://darkmattertheme.com
4 +
;; Palette + a few overrides on top of `base16-theme' (package base16-theme).
5 +
;; The 16 slots are mapped to match the old doom-darkmatter roles.
5 6
6 -
(deftheme darkmatter "Darkmatter, based on Black Metal Bathory.")
7 +
(require 'base16-theme)
7 8
8 -
(let* ((bg      "#121113")
9 -
       (base0   "#0b0a0b")
10 -
       (base2   "#1a191a")
11 -
       (base3   "#222222")
12 -
       (base4   "#333333")
13 -
       (base5   "#555555")
14 -
       (base6   "#777777")
15 -
       (base7   "#999999")
16 -
       (fg      "#c1c1c1")
17 -
       (fg-alt  "#999999")
18 -
       (red     "#aa6c6c")
19 -
       (orange  "#e78a53")
20 -
       (string  "#fbcb97")
21 -
       (teal    "#5f8787")
22 -
       (blue    "#888888")
23 -
       (violet  "#aaaaaa"))
24 -
  (custom-theme-set-faces
25 -
   'darkmatter
26 -
   `(default ((t (:background ,bg :foreground ,fg))))
27 -
   `(cursor ((t (:background ,orange))))
28 -
   `(fringe ((t (:background ,bg :foreground ,base4))))
29 -
   `(region ((t (:background ,base3 :extend t))))
30 -
   `(highlight ((t (:background ,base3))))
31 -
   `(hl-line ((t (:background ,base2))))
32 -
   `(secondary-selection ((t (:background ,base3))))
33 -
   `(shadow ((t (:foreground ,base6))))
34 -
   `(link ((t (:foreground ,orange :underline t))))
35 -
   `(link-visited ((t (:foreground ,base7 :underline t))))
36 -
   `(match ((t (:foreground ,orange :weight bold))))
37 -
   `(isearch ((t (:background ,orange :foreground ,bg :weight bold))))
38 -
   `(lazy-highlight ((t (:background ,base4 :foreground ,fg))))
39 -
   `(error ((t (:foreground ,red))))
40 -
   `(warning ((t (:foreground ,orange))))
41 -
   `(success ((t (:foreground ,string))))
42 -
   `(escape-glyph ((t (:foreground ,orange))))
43 -
   `(minibuffer-prompt ((t (:foreground ,orange))))
44 -
   `(vertical-border ((t (:foreground ,base3))))
45 -
   `(window-divider ((t (:foreground ,base3))))
46 -
   `(show-paren-match ((t (:foreground ,orange :weight bold :underline t))))
47 -
   `(show-paren-mismatch ((t (:background ,red :foreground ,bg))))
48 -
   `(trailing-whitespace ((t (:background ,base4))))
9 +
(defvar darkmatter-theme-colors
10 +
  '(:base00 "#121113"   ; background
11 +
    :base01 "#1a191a"   ; lighter background (highlight)
12 +
    :base02 "#222222"   ; selection
13 +
    :base03 "#555555"   ; comments
14 +
    :base04 "#777777"   ; doc, dark foreground
15 +
    :base05 "#c1c1c1"   ; foreground
16 +
    :base06 "#d0d0d0"   ; light foreground
17 +
    :base07 "#e8e8e8"   ; lightest
18 +
    :base08 "#aa6c6c"   ; red: errors
19 +
    :base09 "#e78a53"   ; orange: warnings, accents
20 +
    :base0A "#e78a53"   ; types
21 +
    :base0B "#fbcb97"   ; strings
22 +
    :base0C "#5f8787"   ; teal
23 +
    :base0D "#888888"   ; functions
24 +
    :base0E "#999999"   ; keywords
25 +
    :base0F "#8a5a5a")  ; deprecated
26 +
  "Darkmatter colors, in base16 slot order.")
49 27
50 -
   ;; line numbers
51 -
   `(line-number ((t (:foreground ,base4 :background ,bg))))
52 -
   `(line-number-current-line ((t (:foreground ,orange :background ,bg))))
28 +
(deftheme darkmatter "Darkmatter, based on Black Metal Bathory.")
53 29
54 -
   ;; mode line
55 -
   `(mode-line ((t (:background ,bg :foreground ,fg :box nil :overline ,base3))))
56 -
   `(mode-line-inactive ((t (:background ,bg :foreground ,base6 :box nil :overline ,base3))))
57 -
   `(mode-line-emphasis ((t (:foreground ,orange))))
58 -
   `(mode-line-buffer-id ((t (:weight bold))))
59 -
   `(header-line ((t (:background ,bg :foreground ,fg-alt))))
30 +
;; Fringe/line numbers share the main background, like doom-darkmatter
31 +
(setq base16-theme-distinct-fringe-background nil)
60 32
61 -
   ;; syntax
62 -
   `(font-lock-builtin-face ((t (:foreground ,base7))))
63 -
   `(font-lock-comment-face ((t (:foreground ,base5))))
64 -
   `(font-lock-comment-delimiter-face ((t (:foreground ,base5))))
65 -
   `(font-lock-doc-face ((t (:foreground ,base6))))
66 -
   `(font-lock-constant-face ((t (:foreground ,violet))))
67 -
   `(font-lock-function-name-face ((t (:foreground ,blue))))
68 -
   `(font-lock-keyword-face ((t (:foreground ,base7))))
69 -
   `(font-lock-negation-char-face ((t (:foreground ,fg-alt))))
70 -
   `(font-lock-preprocessor-face ((t (:foreground ,base7))))
71 -
   `(font-lock-string-face ((t (:foreground ,string))))
72 -
   `(font-lock-type-face ((t (:foreground ,orange))))
73 -
   `(font-lock-variable-name-face ((t (:foreground ,teal))))
74 -
   `(font-lock-warning-face ((t (:foreground ,orange))))
33 +
(base16-theme-define 'darkmatter darkmatter-theme-colors)
75 34
76 -
   ;; completion
77 -
   `(completions-common-part ((t (:foreground ,orange))))
78 -
   `(completions-first-difference ((t (:foreground ,fg :weight bold))))
79 -
   `(completions-annotations ((t (:foreground ,base6))))
35 +
;; Where doom-darkmatter differs from stock base16 role assignments
36 +
(custom-theme-set-faces
37 +
 'darkmatter
38 +
 '(cursor                      ((t (:background "#e78a53"))))
39 +
 '(font-lock-variable-name-face ((t (:foreground "#5f8787"))))
40 +
 '(font-lock-builtin-face      ((t (:foreground "#999999"))))
41 +
 '(font-lock-constant-face     ((t (:foreground "#aaaaaa"))))
42 +
 '(font-lock-number-face       ((t (:foreground "#aaaaaa"))))
43 +
 '(font-lock-warning-face      ((t (:foreground "#e78a53"))))
44 +
 '(mode-line                   ((t (:foreground "#c1c1c1" :background "#121113" :overline "#222222" :box nil))))
45 +
 '(mode-line-inactive          ((t (:foreground "#777777" :background "#121113" :overline "#222222" :box nil))))
46 +
 '(mode-line-buffer-id         ((t (:foreground "#c1c1c1" :weight bold))))
47 +
 '(line-number                 ((t (:foreground "#333333" :background "#121113"))))
48 +
 '(line-number-current-line    ((t (:foreground "#e78a53" :background "#121113"))))
49 +
 '(vertical-border             ((t (:foreground "#222222"))))
50 +
 '(erc-prompt-face             ((t (:foreground "#e78a53" :weight bold))))
80 51
81 -
   ;; org
82 -
   `(org-level-1 ((t (:foreground ,orange :weight bold))))
83 -
   `(org-level-2 ((t (:foreground ,string))))
84 -
   `(org-level-3 ((t (:foreground ,teal))))
85 -
   `(org-level-4 ((t (:foreground ,violet))))
86 -
   `(org-code ((t (:foreground ,string))))
87 -
   `(org-verbatim ((t (:foreground ,teal))))
88 -
   `(org-block ((t (:background ,base2 :extend t))))
89 -
   `(org-todo ((t (:foreground ,orange :weight bold))))
90 -
   `(org-done ((t (:foreground ,base6 :weight bold))))
52 +
 ;; Packages base16 has no faces for
53 +
 '(elfeed-search-date-face          ((t (:foreground "#aaaaaa"))))
54 +
 '(elfeed-search-feed-face          ((t (:foreground "#888888"))))
55 +
 '(elfeed-search-tag-face           ((t (:foreground "#555555"))))
56 +
 '(elfeed-search-title-face         ((t (:foreground "#555555"))))
57 +
 '(elfeed-search-unread-title-face  ((t (:foreground "#c1c1c1" :weight bold))))
58 +
 '(elfeed-search-unread-count-face  ((t (:foreground "#e78a53"))))
59 +
 '(elfeed-search-filter-face        ((t (:foreground "#aaaaaa"))))
60 +
 '(elfeed-log-debug-level-face      ((t (:foreground "#555555"))))
61 +
 '(elfeed-log-error-level-face      ((t (:inherit error))))
62 +
 '(elfeed-log-info-level-face       ((t (:inherit success))))
63 +
 '(elfeed-log-warn-level-face       ((t (:inherit warning))))
64 +
 '(which-key-key-face               ((t (:foreground "#e78a53"))))
65 +
 '(which-key-group-description-face ((t (:foreground "#999999"))))
66 +
 '(which-key-command-description-face ((t (:foreground "#c1c1c1")))))
91 67
92 -
   ;; diff / vc
93 -
   `(diff-added ((t (:foreground ,string))))
94 -
   `(diff-removed ((t (:foreground ,red))))
95 -
   `(diff-changed ((t (:foreground ,orange))))
96 -
97 -
   ;; ERC
98 -
   `(erc-default-face ((t (:foreground ,fg))))
99 -
   `(erc-timestamp-face ((t (:foreground ,base5))))
100 -
   `(erc-prompt-face ((t (:foreground ,orange :weight bold))))
101 -
   `(erc-notice-face ((t (:foreground ,base6))))
102 -
   `(erc-input-face ((t (:foreground ,string))))
103 -
   `(erc-my-nick-face ((t (:foreground ,orange :weight bold))))
104 -
   `(erc-nick-default-face ((t (:foreground ,teal :weight bold))))
105 -
   `(erc-nick-msg-face ((t (:foreground ,orange))))
106 -
   `(erc-direct-msg-face ((t (:foreground ,orange))))
107 -
   `(erc-action-face ((t (:foreground ,violet :slant italic))))
108 -
   `(erc-error-face ((t (:foreground ,red))))
109 -
   `(erc-current-nick-face ((t (:foreground ,orange :weight bold))))
110 -
   `(erc-keyword-face ((t (:foreground ,orange :weight bold))))
111 -
   `(erc-pal-face ((t (:foreground ,string :weight bold))))
112 -
   `(erc-fool-face ((t (:foreground ,base5))))
113 -
   `(erc-header-line ((t (:background ,bg :foreground ,fg-alt))))
114 -
   `(erc-button ((t (:foreground ,orange :underline t))))
115 -
   `(erc-bold-face ((t (:weight bold))))
116 -
   `(erc-underline-face ((t (:underline t))))
117 -
   `(erc-command-indicator-face ((t (:foreground ,base7 :weight bold))))
118 -
   `(erc-fill-wrap-merge-indicator-face ((t (:foreground ,base4))))))
68 +
;; Magit/diff/org/vc faces, flattened from doom-darkmatter
69 +
(custom-theme-set-faces
70 +
 'darkmatter
71 +
 '(diff-hl-change ((t (:foreground "#e78a53" :background "#e78a53"))))
72 +
 '(diff-hl-delete ((t (:foreground "#aa6c6c" :background "#aa6c6c"))))
73 +
 '(diff-hl-insert ((t (:foreground "#fbcb97" :background "#fbcb97"))))
74 +
 '(diff-added ((t (:inherit hl-line :foreground "#fbcb97"))))
75 +
 '(diff-changed ((t (:foreground "#aaaaaa"))))
76 +
 '(diff-context ((t (:foreground "#a9a9a9"))))
77 +
 '(diff-removed ((t (:foreground "#aa6c6c" :background "#222222"))))
78 +
 '(diff-header ((t (:foreground "#aaaaaa"))))
79 +
 '(diff-file-header ((t (:foreground "#888888"))))
80 +
 '(diff-hunk-header ((t (:foreground "#aaaaaa"))))
81 +
 '(diff-indicator-added ((t (:foreground "#fbcb97"))))
82 +
 '(diff-indicator-changed ((t (:foreground "#e78a53"))))
83 +
 '(diff-indicator-removed ((t (:foreground "#aa6c6c"))))
84 +
 '(diff-refine-added ((t (:inherit diff-added :inverse-video t))))
85 +
 '(diff-refine-changed ((t (:inherit diff-changed :inverse-video t))))
86 +
 '(diff-refine-removed ((t (:inherit diff-removed :inverse-video t))))
87 +
 '(ediff-fine-diff-A ((t (:inherit diff-refine-removed))))
88 +
 '(ediff-fine-diff-B ((t (:inherit diff-refine-added))))
89 +
 '(ediff-fine-diff-C ((t (:inherit ediff-fine-diff-A))))
90 +
 '(ediff-current-diff-A ((t (:foreground "#aa6c6c" :background "#3d3030" :extend t))))
91 +
 '(ediff-current-diff-B ((t (:foreground "#fbcb97" :background "#40362d" :extend t))))
92 +
 '(ediff-current-diff-C ((t (:inherit ediff-current-diff-A))))
93 +
 '(ediff-even-diff-A ((t (:inherit hl-line))))
94 +
 '(ediff-even-diff-B ((t (:inherit ediff-even-diff-A))))
95 +
 '(ediff-even-diff-C ((t (:inherit ediff-even-diff-A))))
96 +
 '(ediff-odd-diff-A ((t (:inherit ediff-even-diff-A))))
97 +
 '(ediff-odd-diff-B ((t (:inherit ediff-odd-diff-A))))
98 +
 '(ediff-odd-diff-C ((t (:inherit ediff-odd-diff-A))))
99 +
 '(git-commit-summary ((t (:foreground "#fbcb97"))))
100 +
 '(git-commit-overlong-summary ((t (:inherit error :background "#0b0a0b" :slant italic :weight bold))))
101 +
 '(git-commit-nonempty-second-line ((t (:inherit git-commit-overlong-summary))))
102 +
 '(git-commit-keyword ((t (:foreground "#aaaaaa" :slant italic))))
103 +
 '(git-commit-pseudo-header ((t (:foreground "#777777" :slant italic))))
104 +
 '(git-commit-known-pseudo-header ((t (:foreground "#777777" :weight bold :slant italic))))
105 +
 '(git-commit-comment-branch-local ((t (:foreground "#999999"))))
106 +
 '(git-commit-comment-branch-remote ((t (:foreground "#fbcb97"))))
107 +
 '(git-commit-comment-detached ((t (:foreground "#e78a53"))))
108 +
 '(git-commit-comment-heading ((t (:foreground "#999999"))))
109 +
 '(git-commit-comment-file ((t (:foreground "#aaaaaa"))))
110 +
 '(git-commit-comment-action ((t nil)))
111 +
 '(hl-line ((t (:background "#121113" :extend t))))
112 +
 '(magit-bisect-bad ((t (:foreground "#aa6c6c"))))
113 +
 '(magit-bisect-good ((t (:foreground "#fbcb97"))))
114 +
 '(magit-bisect-skip ((t (:foreground "#e78a53"))))
115 +
 '(magit-blame-hash ((t (:foreground "#aaaaaa"))))
116 +
 '(magit-blame-date ((t (:foreground "#aa6c6c"))))
117 +
 '(magit-blame-heading ((t (:foreground "#e78a53" :background "#222222" :extend t))))
118 +
 '(magit-branch-current ((t (:foreground "#888888"))))
119 +
 '(magit-branch-local ((t (:foreground "#aaaaaa"))))
120 +
 '(magit-branch-remote ((t (:foreground "#fbcb97"))))
121 +
 '(magit-cherry-equivalent ((t (:foreground "#aaaaaa"))))
122 +
 '(magit-cherry-unmatched ((t (:foreground "#aaaaaa"))))
123 +
 '(magit-diff-added ((t (:foreground "#c8a278" :background "#292320" :extend t))))
124 +
 '(magit-diff-added-highlight ((t (:foreground "#fbcb97" :background "#40362d" :weight bold :extend t))))
125 +
 '(magit-diff-base ((t (:foreground "#b86e42" :background "#271d19" :extend t))))
126 +
 '(magit-diff-base-highlight ((t (:foreground "#e78a53" :background "#3c291f" :weight bold :extend t))))
127 +
 '(magit-diff-context ((t (:foreground "#737373" :background "#121113" :extend t))))
128 +
 '(magit-diff-context-highlight ((t (:foreground "#c1c1c1" :background "#121113" :extend t))))
129 +
 '(magit-diff-file-heading ((t (:foreground "#c1c1c1" :weight bold :extend t))))
130 +
 '(magit-diff-file-heading-selection ((t (:foreground "#999999" :background "#666666" :weight bold :extend t))))
131 +
 '(magit-diff-hunk-heading ((t (:foreground "#121113" :background "#3f3e40" :extend t))))
132 +
 '(magit-diff-hunk-heading-highlight ((t (:foreground "#121113" :background "#aaaaaa" :weight bold :extend t))))
133 +
 '(magit-diff-lines-heading ((t (:foreground "#e78a53" :background "#aa6c6c" :extend t :extend t))))
134 +
 '(magit-diff-removed ((t (:foreground "#885656" :background "#2f2929" :extend t))))
135 +
 '(magit-diff-removed-highlight ((t (:foreground "#aa6c6c" :background "#3d3030" :weight bold :extend t))))
136 +
 '(magit-diffstat-added ((t (:foreground "#fbcb97"))))
137 +
 '(magit-diffstat-removed ((t (:foreground "#aa6c6c"))))
138 +
 '(magit-dimmed ((t (:foreground "#999999"))))
139 +
 '(magit-hash ((t (:foreground "#555555"))))
140 +
 '(magit-header-line ((t (:background "#666666" :foreground "#c1c1c1" :weight bold :box (:line-width 3 :color "#666666")))))
141 +
 '(magit-filename ((t (:foreground "#aaaaaa"))))
142 +
 '(magit-log-author ((t (:foreground "#e78a53"))))
143 +
 '(magit-log-date ((t (:foreground "#888888"))))
144 +
 '(magit-log-graph ((t (:foreground "#555555"))))
145 +
 '(magit-process-ng ((t (:inherit error))))
146 +
 '(magit-process-ok ((t (:inherit success))))
147 +
 '(magit-reflog-amend ((t (:foreground "#999999"))))
148 +
 '(magit-reflog-checkout ((t (:foreground "#888888"))))
149 +
 '(magit-reflog-cherry-pick ((t (:foreground "#fbcb97"))))
150 +
 '(magit-reflog-commit ((t (:foreground "#fbcb97"))))
151 +
 '(magit-reflog-merge ((t (:foreground "#fbcb97"))))
152 +
 '(magit-reflog-other ((t (:foreground "#aaaaaa"))))
153 +
 '(magit-reflog-rebase ((t (:foreground "#999999"))))
154 +
 '(magit-reflog-remote ((t (:foreground "#aaaaaa"))))
155 +
 '(magit-reflog-reset ((t (:inherit error))))
156 +
 '(magit-refname ((t (:foreground "#555555"))))
157 +
 '(magit-section-heading ((t (:foreground "#888888" :weight bold :extend t))))
158 +
 '(magit-section-heading-selection ((t (:foreground "#e78a53" :weight bold :extend t))))
159 +
 '(magit-section-highlight ((t (:inherit hl-line))))
160 +
 '(magit-section-secondary-heading ((t (:foreground "#aaaaaa" :weight bold :extend t))))
161 +
 '(magit-sequence-drop ((t (:foreground "#aa6c6c"))))
162 +
 '(magit-sequence-head ((t (:foreground "#888888"))))
163 +
 '(magit-sequence-part ((t (:foreground "#e78a53"))))
164 +
 '(magit-sequence-stop ((t (:foreground "#fbcb97"))))
165 +
 '(magit-signature-bad ((t (:inherit error))))
166 +
 '(magit-signature-error ((t (:inherit error))))
167 +
 '(magit-signature-expired ((t (:foreground "#e78a53"))))
168 +
 '(magit-signature-good ((t (:inherit success))))
169 +
 '(magit-signature-revoked ((t (:foreground "#999999"))))
170 +
 '(magit-signature-untrusted ((t (:foreground "#e78a53"))))
171 +
 '(magit-tag ((t (:foreground "#e78a53"))))
172 +
 '(org-block ((t (:background "#222222" :extend t))))
173 +
 '(org-block-background ((t (:background "#222222" :extend t))))
174 +
 '(org-block-begin-line ((t (:inherit org-block :foreground "#555555"))))
175 +
 '(org-block-end-line ((t (:inherit org-block-begin-line))))
176 +
 '(org-checkbox ((t (:inherit org-todo))))
177 +
 '(org-checkbox-statistics-done ((t (:inherit org-done))))
178 +
 '(org-checkbox-statistics-todo ((t (:inherit org-todo))))
179 +
 '(org-code ((t (:inherit org-block :foreground "#e78a53"))))
180 +
 '(org-date ((t (:foreground "#e78a53"))))
181 +
 '(org-document-info ((t (:foreground "#999999"))))
182 +
 '(org-document-title ((t (:foreground "#999999" :weight bold))))
183 +
 '(org-done ((t (:inherit org-headline-done :strike-through unspecified :weight bold))))
184 +
 '(org-link ((t (:inherit link :foreground "#e78a53"))))
185 +
 '(org-meta-line ((t (:foreground "#777777"))))
186 +
 '(org-table ((t (:foreground "#aaaaaa"))))
187 +
 '(org-tag ((t (:foreground "#777777" :weight normal))))
188 +
 '(org-todo ((t (:foreground "#fbcb97" :bold inherit))))
189 +
 '(org-verbatim ((t (:foreground "#fbcb97"))))
190 +
 '(outline-1 ((t (:foreground "#888888" :weight bold :extend t))))
191 +
 '(outline-2 ((t (:foreground "#999999" :weight bold :extend t))))
192 +
 '(outline-3 ((t (:foreground "#aaaaaa" :weight bold :extend t))))
193 +
 '(outline-4 ((t (:foreground "#a5a5a5" :weight bold :extend t))))
194 +
 '(outline-5 ((t (:foreground "#b2b2b2" :weight bold :extend t))))
195 +
 '(outline-6 ((t (:foreground "#c3c3c3" :weight bold :extend t))))
196 +
 '(outline-7 ((t (:foreground "#cccccc" :weight bold :extend t))))
197 +
 '(outline-8 ((t (:foreground "#e7e7e7" :weight bold :extend t))))
198 +
 '(smerge-lower ((t (:background "#40362d"))))
199 +
 '(smerge-upper ((t (:background "#3d3030"))))
200 +
 '(smerge-base ((t (:background "#29282a"))))
201 +
 '(smerge-markers ((t (:background "#555555" :foreground "#121113" :distant-foreground "#c1c1c1" :weight bold))))
202 +
 '(smerge-refined-added ((t (:inherit diff-added :inverse-video t))))
203 +
 '(smerge-refined-removed ((t (:inherit diff-removed :inverse-video t))))
204 +
 '(smerge-mine ((t (:background "#3d3030"))))
205 +
 '(smerge-other ((t (:background "#40362d")))))
119 206
120 207
(provide-theme 'darkmatter)
121 208