|
1 |
| -;;; The Modus themes |
| 1 | +;;; init-modus-summertime.el --- Modus themes "Summertime" -*- lexical-binding: t _*_ |
2 | 2 |
|
3 |
| -;; These are built into Emacs 28 or higher, though I use the package for |
4 |
| -;; my development purposes (I need to make sure it always builds cleanly |
5 |
| -;; and works properly). |
6 |
| - |
7 |
| -;; Read their manual with Emacs' Info reader, or visit: |
8 |
| -;; <https://protesilaos.com/emacs/modus-themes>. |
9 |
| -(require 'modus-themes) |
10 |
| - |
11 |
| -;; Add all your customizations prior to loading the themes |
12 |
| -;; |
13 |
| -;; NOTE: these are not my preferences! I am always testing various |
14 |
| -;; configurations. Though I still like what I have here. |
15 |
| -(setq modus-themes-italic-constructs t |
16 |
| - modus-themes-bold-constructs t |
17 |
| - modus-themes-mixed-fonts t |
18 |
| - modus-themes-subtle-line-numbers t |
19 |
| - modus-themes-intense-mouseovers nil |
20 |
| - modus-themes-deuteranopia nil |
21 |
| - modus-themes-tabs-accented nil |
22 |
| - modus-themes-variable-pitch-ui t |
23 |
| - modus-themes-inhibit-reload t ; only applies to `customize-set-variable' and related |
24 |
| - |
25 |
| - modus-themes-fringes nil ; {nil,'subtle,'intense} |
26 |
| - |
27 |
| - ;; Options for `modus-themes-lang-checkers' are either nil (the |
28 |
| - ;; default), or a list of properties that may include any of those |
29 |
| - ;; symbols: `straight-underline', `text-also', `background', |
30 |
| - ;; `intense' OR `faint'. |
31 |
| - modus-themes-lang-checkers nil |
32 |
| - |
33 |
| - ;; Options for `modus-themes-mode-line' are either nil, or a list |
34 |
| - ;; that can combine any of `3d' OR `moody', `borderless', |
35 |
| - ;; `accented', a natural number for extra padding (or a cons cell |
36 |
| - ;; of padding and NATNUM), and a floating point for the height of |
37 |
| - ;; the text relative to the base font size (or a cons cell of |
38 |
| - ;; height and FLOAT) |
39 |
| - modus-themes-mode-line '(accented) |
40 |
| - |
41 |
| - ;; Options for `modus-themes-markup' are either nil, or a list |
42 |
| - ;; that can combine any of `bold', `italic', `background', |
43 |
| - ;; `intense'. |
44 |
| - modus-themes-markup nil |
45 |
| - |
46 |
| - ;; Options for `modus-themes-syntax' are either nil (the default), |
47 |
| - ;; or a list of properties that may include any of those symbols: |
48 |
| - ;; `faint', `yellow-comments', `green-strings', `alt-syntax' |
49 |
| - modus-themes-syntax nil |
50 |
| - |
51 |
| - ;; Options for `modus-themes-hl-line' are either nil (the default), |
52 |
| - ;; or a list of properties that may include any of those symbols: |
53 |
| - ;; `accented', `underline', `intense' |
54 |
| - modus-themes-hl-line nil |
55 |
| - |
56 |
| - ;; Options for `modus-themes-paren-match' are either nil (the |
57 |
| - ;; default), or a list of properties that may include any of those |
58 |
| - ;; symbols: `bold', `intense', `underline' |
59 |
| - modus-themes-paren-match '(bold) |
60 |
| - |
61 |
| - ;; Options for `modus-themes-links' are either nil (the default), |
62 |
| - ;; or a list of properties that may include any of those symbols: |
63 |
| - ;; `neutral-underline' OR `no-underline', `faint' OR `no-color', |
64 |
| - ;; `bold', `italic', `background' |
65 |
| - modus-themes-links '(neutral-underline) |
66 |
| - |
67 |
| - ;; Options for `modus-themes-box-buttons' are either nil (the |
68 |
| - ;; default), or a list that can combine any of `flat', |
69 |
| - ;; `accented', `faint', `variable-pitch', `underline', |
70 |
| - ;; `all-buttons', the symbol of any font weight as listed in |
71 |
| - ;; `modus-themes-weights', and a floating point number |
72 |
| - ;; (e.g. 0.9) for the height of the button's text. |
73 |
| - modus-themes-box-buttons nil |
74 |
| - |
75 |
| - ;; Options for `modus-themes-prompts' are either nil (the |
76 |
| - ;; default), or a list of properties that may include any of those |
77 |
| - ;; symbols: `background', `bold', `gray', `intense', `italic' |
78 |
| - modus-themes-prompts nil |
79 |
| - |
80 |
| - ;; The `modus-themes-completions' is an alist that reads three |
81 |
| - ;; keys: `matches', `selection', `popup'. Each accepts a nil |
82 |
| - ;; value (or empty list) or a list of properties that can include |
83 |
| - ;; any of the following (for WEIGHT read further below): |
84 |
| - ;; |
85 |
| - ;; `matches' - `background', `intense', `underline', `italic', WEIGHT |
86 |
| - ;; `selection' - `accented', `intense', `underline', `italic', `text-also', WEIGHT |
87 |
| - ;; `popup' - same as `selected' |
88 |
| - ;; `t' - applies to any key not explicitly referenced (check docs) |
89 |
| - ;; |
90 |
| - ;; WEIGHT is a symbol such as `semibold', `light', or anything |
91 |
| - ;; covered in `modus-themes-weights'. Bold is used in the absence |
92 |
| - ;; of an explicit WEIGHT. |
93 |
| - modus-themes-completions |
94 |
| - '((matches . (semibold)) |
95 |
| - (selection . (extrabold accented)) |
96 |
| - (popup . (extrabold accented))) |
97 |
| - |
98 |
| - modus-themes-mail-citations nil ; {nil,'intense,'faint,'monochrome} |
99 |
| - |
100 |
| - ;; Options for `modus-themes-region' are either nil (the default), |
101 |
| - ;; or a list of properties that may include any of those symbols: |
102 |
| - ;; `no-extend', `bg-only', `accented' |
103 |
| - modus-themes-region '(accented no-extend) |
104 |
| - |
105 |
| - ;; Options for `modus-themes-diffs': nil, 'desaturated, 'bg-only |
106 |
| - modus-themes-diffs nil |
107 |
| - |
108 |
| - modus-themes-org-blocks 'gray-background ; {nil,'gray-background,'tinted-background} |
109 |
| - |
110 |
| - modus-themes-org-agenda ; this is an alist: read the manual or its doc string |
111 |
| - '((header-block . (variable-pitch light 1.6)) |
112 |
| - (header-date . (underline-today grayscale workaholic 1.2)) |
113 |
| - (event . (accented italic varied)) |
114 |
| - (scheduled . rainbow) |
115 |
| - (habit . simplified)) |
116 |
| - |
117 |
| - ;; The `modus-themes-headings' is an alist with lots of possible |
118 |
| - ;; combinations, include per-heading-level tweaks: read the |
119 |
| - ;; manual or its doc string |
120 |
| - modus-themes-headings |
121 |
| - '((0 . (variable-pitch light (height 2.2))) |
122 |
| - (1 . (rainbow variable-pitch light (height 1.6))) |
123 |
| - (2 . (rainbow variable-pitch light (height 1.4))) |
124 |
| - (3 . (rainbow variable-pitch regular (height 1.3))) |
125 |
| - (4 . (rainbow regular (height 1.2))) |
126 |
| - (5 . (rainbow (height 1.1))) |
127 |
| - (t . (variable-pitch extrabold)))) |
128 |
| - |
129 |
| -;; Load the theme files before enabling a theme (else you get an error). |
130 |
| -(modus-themes-load-themes) |
131 |
| - |
132 |
| -;; Load the theme of your preference: |
133 |
| -;; (modus-themes-load-operandi) ; OR (modus-themes-load-vivendi) |
134 |
| -(modus-themes-load-vivendi) |
135 |
| - |
136 |
| -;; Optionally set the `modus-themes-toggle' to a key binding: |
137 |
| -(define-key global-map (kbd "<f9>") #'modus-themes-toggle) |
138 |
| - |
139 |
| -;;;; Modus themes "Summertime" |
| 3 | +;;; Commentary: |
| 4 | +;; All the contents from pretesilaos blog: |
140 | 5 |
|
141 | 6 | ;; Read the relevant blog post:
|
142 | 7 | ;; <https://protesilaos.com/codelog/2022-07-26-modus-themes-color-override-demo/>
|
|
145 | 10 | ;; "summertime", (ii) testing variants of this in her setup, and (iii)
|
146 | 11 | ;; sending me feedback on possible tweaks and refinements. All errors
|
147 | 12 | ;; are my own. (This information is shared with permission.)
|
| 13 | + |
| 14 | +;;; Code: |
148 | 15 | (define-minor-mode modus-themes-summertime
|
149 | 16 | "Refashion the Modus themes by overriding their colors.
|
150 | 17 |
|
@@ -410,3 +277,7 @@ provide."
|
410 | 277 | (setq modus-themes-operandi-color-overrides nil
|
411 | 278 | modus-themes-vivendi-color-overrides nil)))
|
412 | 279 |
|
| 280 | + |
| 281 | +(provide 'init-modus-summertime) |
| 282 | +;;; init-modus-summertime.el ends here |
| 283 | + |
0 commit comments