Document overrides+configs to get my tweaks

This commit is contained in:
Protesilaos Stavrou 2023-04-08 18:55:22 +03:00
parent ede2ab0e0f
commit fd81d2c2ea
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 334 additions and 118 deletions

View file

@ -168,6 +168,7 @@ Stylistic variants using palette overrides
* Make line numbers use alternative styles::
* Make diffs use only a foreground::
* Make deuteranopia diffs red and blue instead of yellow and blue::
* Make the themes look like what the maintainer uses::
Face coverage
@ -612,6 +613,8 @@ package declaration. That will lead to failures in loading the files.
If either or both of those variables need to be changed, their values
should be defined before the package declaration of the themes.
*note Make the themes look like what the maintainer uses::

File: modus-themes.info, Node: Differences between loading and enabling, Prev: Sample configuration with and without use-package, Up: Enable and load
@ -1428,6 +1431,7 @@ Palette override presets::).
* Make line numbers use alternative styles::
* Make diffs use only a foreground::
* Make deuteranopia diffs red and blue instead of yellow and blue::
* Make the themes look like what the maintainer uses::

File: modus-themes.info, Node: Make the mode line borderless, Next: Make the active mode line colorful, Up: Stylistic variants using palette overrides
@ -2501,7 +2505,7 @@ overrides.
(fg-removed-intense yellow-intense)))

File: modus-themes.info, Node: Make deuteranopia diffs red and blue instead of yellow and blue, Prev: Make diffs use only a foreground, Up: Stylistic variants using palette overrides
File: modus-themes.info, Node: Make deuteranopia diffs red and blue instead of yellow and blue, Next: Make the themes look like what the maintainer uses, Prev: Make diffs use only a foreground, Up: Stylistic variants using palette overrides
5.2.23 Make deuteranopia diffs red and blue instead of yellow and blue
----------------------------------------------------------------------
@ -2550,6 +2554,110 @@ respectively. This is achieved by overriding the “changed” and
(fg-removed "#ffbfbf")
(fg-removed-intense "#ff9095")))

File: modus-themes.info, Node: Make the themes look like what the maintainer uses, Prev: Make deuteranopia diffs red and blue instead of yellow and blue, Up: Stylistic variants using palette overrides
5.2.24 Make the themes look like what the maintainer uses
---------------------------------------------------------
Based on what we have learnt from the previous sections of this manual,
here is what Protesilaos uses:
;; Always reload the theme for changes to take effect!
(setq modus-themes-custom-auto-reload nil
modus-themes-to-toggle '(modus-operandi modus-vivendi)
modus-themes-mixed-fonts t
modus-themes-variable-pitch-ui nil
modus-themes-italic-constructs t
modus-themes-bold-constructs nil
modus-themes-org-blocks nil
modus-themes-completions '((t . (extrabold)))
modus-themes-prompts nil
modus-themes-headings
'((agenda-structure . (variable-pitch light 2.2))
(agenda-date . (variable-pitch regular 1.3))
(t . (regular 1.15))))
(setq modus-themes-common-palette-overrides
'((cursor magenta-cooler)
;; Make the fringe invisible.
(fringe unspecified)
;; Make line numbers less intense and add a shade of cyan
;; for the current line number.
(fg-line-number-inactive "gray50")
(fg-line-number-active cyan-cooler)
(bg-line-number-inactive unspecified)
(bg-line-number-active unspecified)
;; Make the current line of `hl-line-mode' a fine shade of
;; gray (though also see my `lin' package).
(bg-hl-line bg-dim)
;; Make the region have a cyan-green background with no
;; specific foreground (use foreground of underlying text).
;; "bg-sage" refers to Salvia officinalis, else the common
;; sage.
(bg-region bg-sage)
(fg-region unspecified)
;; Make matching parentheses a shade of magenta. It
;; complements the region nicely.
(bg-paren-match bg-magenta-intense)
;; Make email citations faint and neutral, reducing the
;; default four colors to two; make mail headers cyan-blue.
(mail-cite-0 fg-dim)
(mail-cite-1 blue-faint)
(mail-cite-2 fg-dim)
(mail-cite-3 blue-faint)
(mail-part cyan-warmer)
(mail-recipient blue-warmer)
(mail-subject magenta-cooler)
(mail-other cyan-warmer)
;; Change dates to a set of more subtle combinations.
(date-deadline magenta-cooler)
(date-scheduled magenta)
(date-weekday fg-main)
(date-event fg-dim)
(date-now blue-faint)
;; Make tags (Org) less colorful and tables look the same as
;; the default foreground.
(prose-done cyan-cooler)
(prose-tag fg-dim)
(prose-table fg-main)
;; Make headings less colorful (though I never use deeply
;; nested headings).
(fg-heading-2 blue-faint)
(fg-heading-3 magenta-faint)
(fg-heading-4 blue-faint)
(fg-heading-5 magenta-faint)
(fg-heading-6 blue-faint)
(fg-heading-7 magenta-faint)
(fg-heading-8 blue-faint)
;; Make the active mode line a fine shade of lavender
;; (purple) and tone down the gray of the inactive mode
;; lines.
(bg-mode-line-active bg-lavender)
(border-mode-line-active bg-lavender)
(bg-mode-line-inactive bg-dim)
(border-mode-line-inactive bg-inactive)
;; Make the prompts a shade of magenta (rosy), to fit in
;; nicely with the overall blue-cyan-purple style of the
;; other overrides. Add a nuanced background as well.
(bg-prompt bg-magenta-nuanced)
(fg-prompt magenta)
;; Tweak some more constructs for stylistic constistency.
(name blue-warmer)
(identifier magenta-faint)
(keybind magenta-cooler)
(accent-0 magenta-cooler)
(accent-1 cyan-cooler)
(accent-2 blue-warmer)
(accent-3 red-cooler)))
;; Make the active mode line have a pseudo 3D effect (this assumes
;; you are using the default mode line and not an extra package).
(custom-set-faces
'(mode-line ((t :box (:style released-button)))))

File: modus-themes.info, Node: More accurate colors in terminal emulators, Next: Range of color with terminal emulators, Prev: Stylistic variants using palette overrides, Up: Advanced customization
@ -5911,123 +6019,124 @@ B.3 Concept index

Tag Table:
Node: Top874
Node: Overview8017
Node: How do the themes look like10415
Node: Learn about the latest changes10774
Node: Installation11162
Node: Install manually from source12092
Node: Install from the archives12917
Node: Install on GNU/Linux13516
Node: Debian 11 Bullseye14009
Node: GNU Guix14419
Node: Dealing with byte compilation errors14702
Node: Enable and load15860
Node: The require-theme for built-in Emacs themes18714
Node: Sample configuration with and without use-package19834
Node: Differences between loading and enabling22682
Node: Customization options24720
Node: Custom reload theme28468
Node: Disable other themes29376
Node: Bold constructs30556
Node: Italic constructs31393
Node: Mixed fonts32164
Node: Command prompts33160
Node: Completion UIs34965
Node: Org mode blocks37755
Node: Heading styles39635
Node: UI typeface43989
Node: Palette overrides44920
Node: Advanced customization49141
Node: Palette override presets50747
Node: Stylistic variants using palette overrides53243
Node: Make the mode line borderless55100
Node: Make the active mode line colorful56702
Node: Make the tab bar more or less colorful58647
Node: Make the fringe invisible or another color60878
Node: Make links use subtle or no underlines62372
Node: Make prompts more or less colorful63369
Node: Make completion matches more or less colorful65033
Node: Make comments yellow and strings green68933
Node: Make code syntax use the old alt-syntax style70836
Node: Make use of alternative styles for code syntax74117
Node: Make matching parenthesis more or less intense77781
Node: Make box buttons more or less gray79217
Node: Make TODO and DONE more or less intense80523
Node: Make headings more or less colorful82226
Node: Make Org agenda more or less colorful84626
Node: Make inline code in prose use alternative styles88086
Node: Make mail citations and headers more or less colorful90627
Node: Make the region preserve text colors plus other styles93322
Node: Make mouse highlights more or less colorful95133
Node: Make language underlines less colorful96440
Node: Make line numbers use alternative styles97886
Node: Make diffs use only a foreground99823
Node: Make deuteranopia diffs red and blue instead of yellow and blue102594
Node: More accurate colors in terminal emulators104957
Node: Range of color with terminal emulators106249
Node: Preview theme colors108963
Node: Per-theme customization settings110808
Node: Get a single color from the palette112154
Node: Use theme colors in code with modus-themes-with-colors114358
Node: Do not extend the region background116691
Node: Add padding to mode line117489
Node: Remap face with local value120047
Node: Font configurations for Org and others122470
Ref: Font configurations for Org and others-Footnote-1125379
Node: Configure bold and italic faces125566
Node: Custom Org todo keyword and priority faces129723
Node: Custom Org emphasis faces133288
Node: Update Org block delimiter fontification138111
Node: Measure color contrast140028
Node: Load theme depending on time of day142726
Node: Backdrop for pdf-tools143736
Node: Toggle themes without reloading them146635
Node: A theme-agnostic hook for theme loading147911
Node: Custom hl-todo colors150333
Node: Add support for solaire-mode151858
Node: Face coverage154769
Node: Supported packages155221
Node: Indirectly covered packages160677
Node: Notes on individual packages162030
Node: Note on calendarel weekday and weekend colors163130
Node: Note on git-gutter in Doom Emacs164278
Node: Note on php-mode multiline comments166622
Node: Note on underlines in compilation buffers167375
Node: Note on inline Latex in Org buffers168212
Node: Note on dimmerel168822
Node: Note on display-fill-column-indicator-mode170307
Node: Note on highlight-parenthesesel171706
Node: Note on mmm-modeel background colors177684
Node: Note for prism179984
Node: Note on company-mode overlay pop-up183152
Ref: Note on company-mode overlay pop-up-Footnote-1183882
Ref: Note on company-mode overlay pop-up-Footnote-2183949
Node: Note on ERC escaped color sequences184004
Ref: Note on ERC escaped color sequences-Footnote-1185432
Node: Note on powerline or spaceline185542
Node: Note on SHR colors185956
Node: Note on SHR fonts186380
Node: Note on Ement colors and fonts187019
Node: Note on pdf-tools link hints188529
Node: Note on the Notmuch logo190989
Node: Note on goto-address-mode faces191527
Node: Frequently Asked Questions192639
Node: Is the contrast ratio about adjacent colors?193270
Node: What does it mean to avoid exaggerations?194777
Node: Why are colors mostly variants of blue magenta cyan?196627
Node: What is the best setup for legibility?200933
Node: Are these color schemes?203578
Node: Port the Modus themes to other platforms?207260
Node: Contributing210032
Node: Sources of the themes210429
Node: Issues you can help with211323
Node: Patches require copyright assignment to the FSF212714
Node: Acknowledgements214934
Node: GNU Free Documentation License218922
Node: Indices244286
Node: Function index244465
Node: Variable index245648
Node: Concept index247547
Node: Overview8072
Node: How do the themes look like10470
Node: Learn about the latest changes10829
Node: Installation11217
Node: Install manually from source12147
Node: Install from the archives12972
Node: Install on GNU/Linux13571
Node: Debian 11 Bullseye14064
Node: GNU Guix14474
Node: Dealing with byte compilation errors14757
Node: Enable and load15915
Node: The require-theme for built-in Emacs themes18769
Node: Sample configuration with and without use-package19889
Node: Differences between loading and enabling22800
Node: Customization options24838
Node: Custom reload theme28586
Node: Disable other themes29494
Node: Bold constructs30674
Node: Italic constructs31511
Node: Mixed fonts32282
Node: Command prompts33278
Node: Completion UIs35083
Node: Org mode blocks37873
Node: Heading styles39753
Node: UI typeface44107
Node: Palette overrides45038
Node: Advanced customization49259
Node: Palette override presets50865
Node: Stylistic variants using palette overrides53361
Node: Make the mode line borderless55273
Node: Make the active mode line colorful56875
Node: Make the tab bar more or less colorful58820
Node: Make the fringe invisible or another color61051
Node: Make links use subtle or no underlines62545
Node: Make prompts more or less colorful63542
Node: Make completion matches more or less colorful65206
Node: Make comments yellow and strings green69106
Node: Make code syntax use the old alt-syntax style71009
Node: Make use of alternative styles for code syntax74290
Node: Make matching parenthesis more or less intense77954
Node: Make box buttons more or less gray79390
Node: Make TODO and DONE more or less intense80696
Node: Make headings more or less colorful82399
Node: Make Org agenda more or less colorful84799
Node: Make inline code in prose use alternative styles88259
Node: Make mail citations and headers more or less colorful90800
Node: Make the region preserve text colors plus other styles93495
Node: Make mouse highlights more or less colorful95306
Node: Make language underlines less colorful96613
Node: Make line numbers use alternative styles98059
Node: Make diffs use only a foreground99996
Node: Make deuteranopia diffs red and blue instead of yellow and blue102767
Node: Make the themes look like what the maintainer uses105189
Node: More accurate colors in terminal emulators109888
Node: Range of color with terminal emulators111180
Node: Preview theme colors113894
Node: Per-theme customization settings115739
Node: Get a single color from the palette117085
Node: Use theme colors in code with modus-themes-with-colors119289
Node: Do not extend the region background121622
Node: Add padding to mode line122420
Node: Remap face with local value124978
Node: Font configurations for Org and others127401
Ref: Font configurations for Org and others-Footnote-1130310
Node: Configure bold and italic faces130497
Node: Custom Org todo keyword and priority faces134654
Node: Custom Org emphasis faces138219
Node: Update Org block delimiter fontification143042
Node: Measure color contrast144959
Node: Load theme depending on time of day147657
Node: Backdrop for pdf-tools148667
Node: Toggle themes without reloading them151566
Node: A theme-agnostic hook for theme loading152842
Node: Custom hl-todo colors155264
Node: Add support for solaire-mode156789
Node: Face coverage159700
Node: Supported packages160152
Node: Indirectly covered packages165608
Node: Notes on individual packages166961
Node: Note on calendarel weekday and weekend colors168061
Node: Note on git-gutter in Doom Emacs169209
Node: Note on php-mode multiline comments171553
Node: Note on underlines in compilation buffers172306
Node: Note on inline Latex in Org buffers173143
Node: Note on dimmerel173753
Node: Note on display-fill-column-indicator-mode175238
Node: Note on highlight-parenthesesel176637
Node: Note on mmm-modeel background colors182615
Node: Note for prism184915
Node: Note on company-mode overlay pop-up188083
Ref: Note on company-mode overlay pop-up-Footnote-1188813
Ref: Note on company-mode overlay pop-up-Footnote-2188880
Node: Note on ERC escaped color sequences188935
Ref: Note on ERC escaped color sequences-Footnote-1190363
Node: Note on powerline or spaceline190473
Node: Note on SHR colors190887
Node: Note on SHR fonts191311
Node: Note on Ement colors and fonts191950
Node: Note on pdf-tools link hints193460
Node: Note on the Notmuch logo195920
Node: Note on goto-address-mode faces196458
Node: Frequently Asked Questions197570
Node: Is the contrast ratio about adjacent colors?198201
Node: What does it mean to avoid exaggerations?199708
Node: Why are colors mostly variants of blue magenta cyan?201558
Node: What is the best setup for legibility?205864
Node: Are these color schemes?208509
Node: Port the Modus themes to other platforms?212191
Node: Contributing214963
Node: Sources of the themes215360
Node: Issues you can help with216254
Node: Patches require copyright assignment to the FSF217645
Node: Acknowledgements219865
Node: GNU Free Documentation License223853
Node: Indices249217
Node: Function index249396
Node: Variable index250579
Node: Concept index252478

End Tag Table

View file

@ -441,6 +441,8 @@ will lead to failures in loading the files. If either or both of those
variables need to be changed, their values should be defined before the
package declaration of the themes.
[[#h:aabcada6-810d-4eee-b34a-d2a9c301824d][Make the themes look like what the maintainer uses]]
** Differences between loading and enabling
:properties:
:custom_id: h:e68560b3-7fb0-42bc-a151-e015948f8a35
@ -2400,6 +2402,111 @@ respectively. This is achieved by overriding the "changed" and
(fg-removed-intense "#ff9095")))
#+end_src
*** Make the themes look like what the maintainer uses
:PROPERTIES:
:CUSTOM_ID: h:aabcada6-810d-4eee-b34a-d2a9c301824d
:END:
Based on what we have learnt from the previous sections of this
manual, here is what Protesilaos uses:
#+begin_src emacs-lisp
;; Always reload the theme for changes to take effect!
(setq modus-themes-custom-auto-reload nil
modus-themes-to-toggle '(modus-operandi modus-vivendi)
modus-themes-mixed-fonts t
modus-themes-variable-pitch-ui nil
modus-themes-italic-constructs t
modus-themes-bold-constructs nil
modus-themes-org-blocks nil
modus-themes-completions '((t . (extrabold)))
modus-themes-prompts nil
modus-themes-headings
'((agenda-structure . (variable-pitch light 2.2))
(agenda-date . (variable-pitch regular 1.3))
(t . (regular 1.15))))
(setq modus-themes-common-palette-overrides
'((cursor magenta-cooler)
;; Make the fringe invisible.
(fringe unspecified)
;; Make line numbers less intense and add a shade of cyan
;; for the current line number.
(fg-line-number-inactive "gray50")
(fg-line-number-active cyan-cooler)
(bg-line-number-inactive unspecified)
(bg-line-number-active unspecified)
;; Make the current line of `hl-line-mode' a fine shade of
;; gray (though also see my `lin' package).
(bg-hl-line bg-dim)
;; Make the region have a cyan-green background with no
;; specific foreground (use foreground of underlying text).
;; "bg-sage" refers to Salvia officinalis, else the common
;; sage.
(bg-region bg-sage)
(fg-region unspecified)
;; Make matching parentheses a shade of magenta. It
;; complements the region nicely.
(bg-paren-match bg-magenta-intense)
;; Make email citations faint and neutral, reducing the
;; default four colors to two; make mail headers cyan-blue.
(mail-cite-0 fg-dim)
(mail-cite-1 blue-faint)
(mail-cite-2 fg-dim)
(mail-cite-3 blue-faint)
(mail-part cyan-warmer)
(mail-recipient blue-warmer)
(mail-subject magenta-cooler)
(mail-other cyan-warmer)
;; Change dates to a set of more subtle combinations.
(date-deadline magenta-cooler)
(date-scheduled magenta)
(date-weekday fg-main)
(date-event fg-dim)
(date-now blue-faint)
;; Make tags (Org) less colorful and tables look the same as
;; the default foreground.
(prose-done cyan-cooler)
(prose-tag fg-dim)
(prose-table fg-main)
;; Make headings less colorful (though I never use deeply
;; nested headings).
(fg-heading-2 blue-faint)
(fg-heading-3 magenta-faint)
(fg-heading-4 blue-faint)
(fg-heading-5 magenta-faint)
(fg-heading-6 blue-faint)
(fg-heading-7 magenta-faint)
(fg-heading-8 blue-faint)
;; Make the active mode line a fine shade of lavender
;; (purple) and tone down the gray of the inactive mode
;; lines.
(bg-mode-line-active bg-lavender)
(border-mode-line-active bg-lavender)
(bg-mode-line-inactive bg-dim)
(border-mode-line-inactive bg-inactive)
;; Make the prompts a shade of magenta (rosy), to fit in
;; nicely with the overall blue-cyan-purple style of the
;; other overrides. Add a nuanced background as well.
(bg-prompt bg-magenta-nuanced)
(fg-prompt magenta)
;; Tweak some more constructs for stylistic constistency.
(name blue-warmer)
(identifier magenta-faint)
(keybind magenta-cooler)
(accent-0 magenta-cooler)
(accent-1 cyan-cooler)
(accent-2 blue-warmer)
(accent-3 red-cooler)))
;; Make the active mode line have a pseudo 3D effect (this assumes
;; you are using the default mode line and not an extra package).
(custom-set-faces
'(mode-line ((t :box (:style released-button)))))
#+end_src
** More accurate colors in terminal emulators
:PROPERTIES:
:CUSTOM_ID: h:fbb5e254-afd6-4313-bb05-93b3b4f67358