Skip to content

Commit 7353644

Browse files
committed
use modus-summertime vivendi as default theme
1 parent a12705e commit 7353644

File tree

3 files changed

+28
-152
lines changed

3 files changed

+28
-152
lines changed

init.el

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@
6464
(require 'init-macos)
6565
)
6666
(if (display-graphic-p)
67-
(require 'init-gui-frames)
68-
)
67+
(progn
68+
(require 'init-gui-frames)
69+
(require 'init-modus-summertime)
70+
(modus-themes-summertime)
71+
(modus-themes-load-vivendi)
72+
)
73+
)
6974
(require 'init-dired)
7075
(require 'init-isearch)
7176
(require 'init-grep)
@@ -103,16 +108,16 @@
103108

104109
;; stat common commands I use.
105110
;; http://blog.binchen.org/posts/how-to-be-extremely-efficient-in-emacs.html
106-
(require 'keyfreq)
107-
(setq keyfreq-excluded-commands
108-
'(self-insert-command
109-
abort-recursive-edit
110-
forward-char
111-
backward-char
112-
previous-line
113-
next-line))
114-
(keyfreq-mode 1)
115-
(keyfreq-autosave-mode 1)
111+
;; (require 'keyfreq)
112+
;; (setq keyfreq-excluded-commands
113+
;; '(self-insert-command
114+
;; abort-recursive-edit
115+
;; forward-char
116+
;; backward-char
117+
;; previous-line
118+
;; next-line))
119+
;; (keyfreq-mode 1)
120+
;; (keyfreq-autosave-mode 1)
116121

117122
(when (file-exists-p custom-file)
118123
(load custom-file))

lisp/init-modus.el renamed to lisp/init-modus-summertime.el

Lines changed: 9 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,7 @@
1-
;;; The Modus themes
1+
;;; init-modus-summertime.el --- Modus themes "Summertime" -*- lexical-binding: t _*_
22

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:
1405

1416
;; Read the relevant blog post:
1427
;; <https://protesilaos.com/codelog/2022-07-26-modus-themes-color-override-demo/>
@@ -145,6 +10,8 @@
14510
;; "summertime", (ii) testing variants of this in her setup, and (iii)
14611
;; sending me feedback on possible tweaks and refinements. All errors
14712
;; are my own. (This information is shared with permission.)
13+
14+
;;; Code:
14815
(define-minor-mode modus-themes-summertime
14916
"Refashion the Modus themes by overriding their colors.
15017
@@ -410,3 +277,7 @@ provide."
410277
(setq modus-themes-operandi-color-overrides nil
411278
modus-themes-vivendi-color-overrides nil)))
412279

280+
281+
(provide 'init-modus-summertime)
282+
;;; init-modus-summertime.el ends here
283+

lisp/init-themes.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
(add-hook 'after-init-hook
3939
(lambda ()
4040
;; load spacemacs-dark
41-
(load-theme 'spacemacs-dark t)
41+
;; (load-theme 'spacemacs-dark t)
4242
;; load modus-vivendi
43-
;; (modus-themes-load-vivendi)
43+
(modus-themes-load-vivendi)
4444
;; (modus-themes-load-operandi)
4545
(if *is-a-mac*
4646
(add-to-list 'default-frame-alist

0 commit comments

Comments
 (0)