Commit graph

925 commits

Author SHA1 Message Date
Protesilaos Stavrou a380f86397
Acknowledge Tomasz Hołubowicz for commit 128acb1
The contribution was made in pull request 71 on the GitHub mirror:
<https://github.com/protesilaos/modus-themes/pull/71>.

The change is small and is below the ~15 line limit.  As such, it does
not require copyright assignment to the Free Software Foundation.
2023-03-28 07:07:05 +03:00
Tomasz Hołubowicz 128acb1664 Add support for jinx
A new package by Daniel Mendler : <https://github.com/minad/jinx>.
2023-03-27 18:12:59 +02:00
Protesilaos Stavrou 2c34f81b83
Clarify that disk-usage support is part of development-version 2023-03-20 06:49:48 +02:00
Protesilaos Stavrou 90167ee9f2
Acknowledge Nacho Barrientos for commit 70adc47
The change is below the ~15 line limit and thus does not require
copyright assignment to the Free Software Foundation.

This patch was sent to the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/patches/39822>.
2023-03-20 06:48:26 +02:00
Nacho Barrientos 70adc47676
Add support for disk-usage
This patch adds support for most of the faces provided by
disk-usage.el [0], aligning them to dired's look when possible.

[0] https://elpa.gnu.org/packages/disk-usage.html
2023-03-20 06:47:47 +02:00
Protesilaos Stavrou df3e2a80de
Document yet another way to override Org agenda styles 2023-03-13 10:31:50 +02:00
Protesilaos Stavrou d4e70e069b
Add support for jit-spell
A new package by Augusto Stoffel: <https://github.com/astoff/jit-spell>.
2023-03-08 07:47:43 +02:00
Protesilaos Stavrou 7f951714ae
Fix typo in the manual 2023-03-08 07:47:30 +02:00
Protesilaos Stavrou c340c5b019
Refile some headings in the manual for better organisation 2023-02-23 09:17:01 +02:00
Protesilaos Stavrou 829d06d9d3
Update to modus-themes version 4.1.0 2023-02-22 19:56:22 +02:00
Protesilaos Stavrou 18e36949cf
Make sure Ediff faces do not depend on diff-mode
Thanks to Bernd Rellermeyer for pointing out this implicit dependency
in issue 68 on the GitHub mirror:
<https://github.com/protesilaos/modus-themes/issues/68>.
2023-02-22 11:38:04 +02:00
Protesilaos Stavrou 9aed34e909
Use correct semantic markup for texi conversion
This is because the modus-themes.org is part of core Emacs and needs
to conform with the Texinfo conventions.
2023-02-06 13:32:47 +02:00
Protesilaos Stavrou 962cc2c274
Simplify sample config of the themes with 'use-package'
Thanks to Zoltan Kiraly for informing me about the fact that the
':bind' keyword delays the load of the package until the given command
is invoked: <https://github.com/protesilaos/modus-themes/pull/67>.

Streamlining the configuration makes it easier for me to propose one
set of basic configurations without the need to know what a
configuration macro is doing behind the scenes.
2023-02-05 17:37:20 +02:00
Protesilaos Stavrou a68e4236bd
Make 'dashboard' icons retain their underlying colour
The default value of the 'dashboard-items-face' made all icons use the
same colour, detracting from their distinctiveness.  Thanks to Thanos
Apollo for bringing this matter to my attention.  It was done via a
private channel and the information is shared with permission.
2023-02-05 17:36:30 +02:00
Protesilaos Stavrou ca4d92aa0d
Document red+blue deuteranopia diffs
Thanks to Andrew Tropin for requesting this feature.  We used to
provide this style in earlier versions of the themes.  Andrew's
request was done via a private channel and the information is shared
with permission.
2023-02-04 14:53:22 +02:00
Protesilaos Stavrou 87289b0918
Document foreground-only diffs via overrides 2023-02-04 14:44:38 +02:00
Protesilaos Stavrou 7b0460dc4a
Update docs about modus-themes-list-colors 2023-01-31 15:19:04 +02:00
Protesilaos Stavrou 1121193dc5
Make modus-themes-get-color-value accept a THEME argument 2023-01-31 12:05:30 +02:00
Protesilaos Stavrou 9a89ce136b
Add link to palette overrides in modus-themes-get-color-value node 2023-01-31 08:33:59 +02:00
Protesilaos Stavrou c26d5a641c
Clarify docs about modus-themes-get-color-value 2023-01-28 07:05:57 +02:00
Protesilaos Stavrou 0ca79257ef
Add function modus-themes-get-color-value and document it
I already had the functionality internally, but it is good to expose
it to users.  I am inspired to do so after checking Sacha Chua's blog
post "Making highlight-sexp follow modus-themes-toggle".[1] Sacha is
using a private function from the themes, which will be problematic if
I ever move things around.

[1] <https://sachachua.com/blog/2023/01/making-highlight-sexp-follow-modus-themes-toggle/>
2023-01-27 08:30:57 +02:00
Protesilaos Stavrou 2dacdf9013
Acknowledge TitusMu for commit 211d711
This was done in issue 64 on the GitHub mirror:
<https://github.com/protesilaos/modus-themes/issues/64>.
2023-01-23 20:08:56 +02:00
Protesilaos Stavrou 9e1b5dfce3
Document how to make tabs more or less colorful 2023-01-20 11:26:37 +02:00
Protesilaos Stavrou b061a7b038
Document how not to extend region background 2023-01-15 05:45:51 +02:00
Protesilaos Stavrou eddf79d2a3
Make Org agenda deadline and today schedule optionally bold
They will use a bold weight only if the user option
'modus-themes-bold-constructs' is set to a non-nil value.

Thanks to Marko Kocic for reporting an issue that brought this matter
to my attention:

- <https://lists.sr.ht/~protesilaos/modus-themes/%3C35588839.256749.1673272214728%40office.mailbox.org%3E>
- <https://lists.sr.ht/~protesilaos/modus-themes/%3C874jszvk5g.fsf%40protesilaos.com%3E>
- <https://lists.sr.ht/~protesilaos/modus-themes/%3C87ilhfu101.fsf%40protesilaos.com%3E>
2023-01-10 06:15:39 +02:00
Protesilaos Stavrou 4e9c88bdb5
Acknowledge Sergey Nichiporchik for commit 1fd126d
Sergey's contribution is within the ~15 line limit and thus does not
require copyright assignment to the Free Software Foundation.

This was done in merge request 59 on the GitLab mirror:
<https://gitlab.com/protesilaos/modus-themes/-/merge_requests/59>.

The prepatory discussion took place in issue 310 on the same mirror:
<https://gitlab.com/protesilaos/modus-themes/-/issues/310>.
2023-01-10 05:20:56 +02:00
Sergey Nichiporchik 1fd126d0bc Update sample configuration with use-package 2023-01-10 03:19:11 +00:00
Protesilaos Stavrou 0dc7854103
Rephrase "*Completions* buffer" in the docs
Thanks to Rudolf Adamkovič for the suggestion:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cm2tu1211qz.fsf%40me.com%3E#%3Cm2eds43htz.fsf@me.com%3E>.
2023-01-09 02:43:56 +02:00
Protesilaos Stavrou b3302411a1
Add comment to clarify point in sample code 2023-01-08 04:52:21 +02:00
Protesilaos Stavrou 3cb41ff0d3
Clarify docs of 'modus-themes-completions'
There was (i) an outdated reference to the 'background' value, which
is no longer supported, and (ii) no reference to the standard
Completions' buffer.

Thanks to Rudolf Adamkovič for informing me about this:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cm2tu1211qz.fsf%40me.com%3E>.
2023-01-08 04:48:30 +02:00
Protesilaos Stavrou 76c9a218b8
Update sample configuration 2023-01-05 05:07:00 +02:00
Protesilaos Stavrou 2b046eceb4
Add user option modus-themes-disable-other-themes
In the past, we used to disable all other themes while loading a Modus
theme.  I revised this for version 4 because I learnt that some users
use "themes" as bundles of arbitrary configurations.  This was
supported by the fact that the Modus themes are built into Emacs so we
need to accommodate every workflow that Emacs supports.

With this addition, I am reverting to the old way of doing things:
loading a Modus theme should disable all others.  Users who need to
run multiple themes can set this option to a nil value.

Thanks to Tony Zorman for the feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C874jtew0gp.fsf%40hyperspace%3E#%3C87bkne84d2.fsf@hyperspace%3E>.
2023-01-05 04:59:50 +02:00
Protesilaos Stavrou 5a624267a5
Fix example colour in the documentation
Thanks to Russell Sim for spotting the error of me using 'bg-blue'
instead of 'bg-blue-intense':
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cyger0wa9gsn.fsf%40simopolis.xyz%3E>.
2023-01-05 04:38:18 +02:00
Protesilaos Stavrou c634edec0a
Update documentation for borderless mode line overrides 2023-01-04 12:28:28 +02:00
Protesilaos Stavrou 188f68ba43
Make it possible to have recursive palette mapping
This means that a semantic colour mapping in the palette can have as
its value another mapping.  The function will find the underlying
colour.

This solves a problem reported by Imran Khan on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cb7ca4702162fd575593f8ded28d9a888.contact%40imrankhan.live%3E>.

I was aware of it from before the release of version 4.0.0 but I was
hesitant to implement recursion prior to getting some feedback on the
new palette overriding feature.

Also thanks to Christian Tietze for participating in that discussion
on the mailing list.
2023-01-04 12:28:06 +02:00
Protesilaos Stavrou 031d2d943f
Make 'compilation-warning' also inherit 'modus-themes-bold'
This was always the intention for all three of
'compilation-{error,info,warning}'.  They will use a bold weight when
the user option 'modus-themes-bold-constructs' is non-nil.

Thanks to Manuel Giraud for informing me about the inconsistency in
'compilation-warning'.  It was done via a private channel and the
information is shared with permission.
2023-01-03 12:43:09 +02:00
Protesilaos Stavrou 59a8361c95
Clarify modus-themes-with-colors setup for custom faces
Thanks to bangedorrunt for the feedback in issue 59 on the GitHub
mirror: <https://github.com/protesilaos/modus-themes/issues/59>.
2023-01-03 03:33:13 +02:00
Protesilaos Stavrou 399d3eaa74
Refine some aspects of sample code 2023-01-03 02:25:59 +02:00
Protesilaos Stavrou f5b5f05d1c
Be explicit about 'require-theme' for built-in themes
Thanks to Koen van Greevenbroek for reporting the problem that helped
me identify this issue:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C31038fd76868fa3d07c9a429dfed8fd6ac374bb8.camel%40posteo.net%3E>.
2023-01-03 02:19:04 +02:00
Protesilaos Stavrou d7970e71eb
Simplify markup in a sample comment 2023-01-03 02:07:07 +02:00
Utkarsh Singh c82b58f4b3
Use modus-themes-with-colors for commit 23b1fc9 2023-01-03 02:04:19 +02:00
Utkarsh Singh 23b1fc95dd
Fix document on how to change pdf-tools backdrop 2023-01-02 11:13:11 +02:00
Protesilaos Stavrou 6ae40baacc
Update copyright years 2023-01-01 14:01:57 +02:00
Protesilaos Stavrou 476445b8f2
Update to modus-themes version 4 2023-01-01 13:40:05 +02:00
Protesilaos Stavrou 70c6ae4386
Document how to override prose colours 2023-01-01 07:56:00 +02:00
Protesilaos Stavrou 6652156eb4
Document how to override line numbers 2023-01-01 07:35:57 +02:00
Protesilaos Stavrou e0db9b3aea
One a node further down in the manual 2023-01-01 07:24:06 +02:00
Protesilaos Stavrou 40351943d0
Document how to affect linter underlines via overrides 2023-01-01 07:18:51 +02:00
Protesilaos Stavrou 207cd6e4e0
Document how to override mouse hover effect 2023-01-01 07:06:01 +02:00
Protesilaos Stavrou c7d03a3a38
Document how to make padded mode line
Thanks to Christian Tietze for reminding me about it:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cm1fscxrr0s.fsf%40christiantietze.de%3E>.
2022-12-30 19:59:11 +02:00
Protesilaos Stavrou 3a27ce30fe
Rename heading of section about modus-themes-with-colors 2022-12-30 19:49:00 +02:00
Protesilaos Stavrou 687a7941e3
Document how to change region with overrides (also see 32dc7f9)
The 'modus-themes-region' option is deprecated, so we know follow this
approach with the overrides.
2022-12-30 19:05:20 +02:00
Protesilaos Stavrou 32dc7f9bc1
Deprecate modus-themes-region; use overrides
This is the last user option that we need to deprecate for the release
of version 4.  Now all colour-related changes happen through palette
overrides.

Thanks to Christian Tietze for reminding me about it:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cm1ilhtrs09.fsf%40christiantietze.de%3E>.
2022-12-30 18:56:51 +02:00
Protesilaos Stavrou 1bf2713e1d
Add documentation on mail citation+header overrides
I don't know about you, but I just found my new favourite:

    (setq modus-themes-common-palette-overrides
          '((mail-cite-0 fg-dim)
            (mail-cite-1 fg-alt)
            (mail-cite-2 fg-dim)
            (mail-cite-3 fg-alt)
            (mail-part yellow-cooler)
            (mail-recipient green-cooler)
            (mail-subject red-cooler)
            (mail-other green)))
2022-12-30 17:42:32 +02:00
Protesilaos Stavrou 9c9347683b
Document how to recreate old "alt-syntax" style
Thanks to Charlotte Van Petegem for reminding me about it:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C877cy917jw.fsf%40vanpetegem.me%3E>.
2022-12-30 13:36:15 +02:00
Protesilaos Stavrou 0618486c41
Acknowledge soaringbird for commits 112e40b, 257db66, d6afeff
They brought those inconsistencies to my attention:
<https://lists.sr.ht/~protesilaos/modus-themes/%3CNKXY2k1--3-9%40tuta.io%3E>.
2022-12-30 12:40:08 +02:00
Protesilaos Stavrou 8f670279af
Add samples for yellow comments, green strings (or inverse!) 2022-12-30 11:06:18 +02:00
Protesilaos Stavrou 9b025c00f8
Add code samples to make fringe invisible or colourful 2022-12-30 10:56:29 +02:00
Protesilaos Stavrou 4f1456c955
Add all links to theme sources 2022-12-30 07:23:54 +02:00
Protesilaos Stavrou 5ddf26d58d
Add example to use preset overrides as a basis 2022-12-30 07:04:50 +02:00
Protesilaos Stavrou 76efc86315
Simplify example for borderless mode lines 2022-12-30 06:55:21 +02:00
Protesilaos Stavrou 492d31db41
Add documentation for paren match overrides 2022-12-30 06:03:30 +02:00
Protesilaos Stavrou 93401ca2c8
Clarify that mappings cannot be recursive
Thanks to tumashu for reminding me of this in issue 56 on the GitHub
mirror: <https://github.com/protesilaos/modus-themes/issues/56>.
2022-12-29 14:47:42 +02:00
Protesilaos Stavrou 0e3262d068
Use A-Z in acknowledgements for two names 2022-12-29 10:23:52 +02:00
Protesilaos Stavrou 9a7d47b9be
Use correct names for coloured backgrounds
This is a regression caused by commit 7c74495.

Thanks to Aleksei Pirogov for reporting the problem in issue 55 on the
GitHub mirror: <https://github.com/protesilaos/modus-themes/issues/55>.
2022-12-29 10:23:06 +02:00
Protesilaos Stavrou 6ee797ba04
Fix typo in the manual 2022-12-29 00:38:56 +02:00
Protesilaos Stavrou adf85ae831
Fill a couple of paragraphs 2022-12-28 19:38:35 +02:00
Protesilaos Stavrou 93c2ae3da4
Rename versions of current dev target 2022-12-28 19:23:39 +02:00
Protesilaos Stavrou f36fd67831
Update sample configuration to match latest changes 2022-12-28 16:12:37 +02:00
Protesilaos Stavrou 3dc825382f
Add cross links for completion color overrides/option 2022-12-28 15:47:47 +02:00
Protesilaos Stavrou 2fa9a272fe
Simplify modus-themes-prompts; add overrides for its colors 2022-12-28 15:47:18 +02:00
Protesilaos Stavrou 871b8ae533
Add code samples for more/less intense completion matches 2022-12-28 15:09:17 +02:00
Protesilaos Stavrou f5b5f1c26e
Add missing comment from overrides' code block 2022-12-28 15:08:34 +02:00
Protesilaos Stavrou 380e60cf49
Simplify modus-themes-completions; use overrides 2022-12-28 14:59:55 +02:00
Protesilaos Stavrou 81cf29f227
Fix typo 2022-12-28 14:35:52 +02:00
Protesilaos Stavrou 01f7fcac2d
Remove completed TODO 2022-12-28 09:01:22 +02:00
Protesilaos Stavrou b0b052e605
Update more named colors in sample code 2022-12-28 08:59:52 +02:00
Protesilaos Stavrou 1adbf9838f
Update named colors in sample code 2022-12-28 08:55:03 +02:00
Protesilaos Stavrou 63ceefc5cf
Update reference to my 'fontaine' package 2022-12-28 08:50:39 +02:00
Protesilaos Stavrou df10f50e94
Update the "sources of the themes" section 2022-12-28 08:48:45 +02:00
Protesilaos Stavrou bbadce06bb
Make minor rewordings in the manual 2022-12-28 08:47:20 +02:00
Protesilaos Stavrou 81953a3355
Remove section with old publications 2022-12-28 08:42:05 +02:00
Protesilaos Stavrou 2f6cfd68e5
Reword FAQ entry for clarity 2022-12-28 08:41:08 +02:00
Protesilaos Stavrou 398e8fa2be
Remove obsolete link; add TODO to review text 2022-12-28 08:37:11 +02:00
Protesilaos Stavrou d5b8d103e8
Rewrite modus-themes-with-colors section 2022-12-28 08:35:25 +02:00
Protesilaos Stavrou bb07fe14cf
Use current names for some colors 2022-12-28 07:19:08 +02:00
Protesilaos Stavrou da5d9835e9
Mention corfu in company-mode popup section 2022-12-28 07:19:08 +02:00
Protesilaos Stavrou 879beb8386
Update named colors in Solaire node 2022-12-28 07:19:08 +02:00
Protesilaos Stavrou e5697a3155
Update prism.el node with current color names 2022-12-28 07:19:08 +02:00
Protesilaos Stavrou 0b8026e24d
Remove some inapplicable sections from the manual 2022-12-28 07:19:08 +02:00
Protesilaos Stavrou 983f974ff9
Give better heading to modus-themes-with-colors section 2022-12-28 07:02:04 +02:00
Protesilaos Stavrou af9a6a8861
Add a link to preview colors in section about terminals 2022-12-28 06:59:12 +02:00
Protesilaos Stavrou 737253a0bd
Remove some of the uncommon colors from the palettes 2022-12-28 06:34:13 +02:00
Protesilaos Stavrou 04783252a6
Fix typo 2022-12-28 06:33:48 +02:00
Protesilaos Stavrou d98c31d519
Update samples for Org agenda overrides 2022-12-28 06:07:56 +02:00
Protesilaos Stavrou 1cc172c3c9
Mention overrides in modus-themes-headings section 2022-12-27 18:13:03 +02:00
Protesilaos Stavrou 6d19d3cdc6
Clarify note about refactoring of modus-themes-region 2022-12-27 18:10:00 +02:00
Protesilaos Stavrou 0ff34a73c2
Clarify note about refactoring of modus-themes-completions 2022-12-27 18:09:57 +02:00
Protesilaos Stavrou 61d5397648
Reword documentation for font mixing 2022-12-27 18:06:29 +02:00
Protesilaos Stavrou b9b7b3b487
Reword documentation about bold constructs 2022-12-27 18:04:30 +02:00
Protesilaos Stavrou f981d57bb5
Update sample for customization options 2022-12-27 14:57:45 +02:00
Protesilaos Stavrou 882a384a14
Clarify when modus-themes-completions 'text-also' applies 2022-12-27 14:57:08 +02:00
Protesilaos Stavrou c8f1682d51
Reword section on Customization options 2022-12-27 14:43:51 +02:00
Protesilaos Stavrou d6fd5e685f
Reword differences between load and enable 2022-12-27 14:36:46 +02:00
Protesilaos Stavrou 15cd7f7ef3
Mention the disable-theme command 2022-12-27 14:33:03 +02:00
Protesilaos Stavrou 76c5bb03b4
Reword section with sample use-package configuration 2022-12-27 14:30:13 +02:00
Protesilaos Stavrou e55ddd7bbe
Reword section on "Enable and load" 2022-12-27 14:29:44 +02:00
Protesilaos Stavrou e80497a2ab
Reword intro section on installing the themes 2022-12-27 14:29:15 +02:00
Protesilaos Stavrou 99e434afbd
Reword section on how the themes look like 2022-12-27 14:29:01 +02:00
Protesilaos Stavrou 93781a4436
Rewrite the manual's overview 2022-12-27 14:12:14 +02:00
Protesilaos Stavrou 191bc74656
Update manual's note on Doom and git-gutter 2022-12-27 13:53:29 +02:00
Protesilaos Stavrou fda40b5c07
Expand example with TODO and DONE overrides 2022-12-26 04:06:01 +02:00
Protesilaos Stavrou e478002d82
Use overrides for heading background and overline 2022-12-24 09:09:33 +02:00
Protesilaos Stavrou 71674e0126
Add example of overrides for link underlines 2022-12-24 05:27:05 +02:00
Protesilaos Stavrou 4f3b512e17
Add example of overrides for colorful mode line 2022-12-24 05:26:55 +02:00
Protesilaos Stavrou 448701868a
Add example of overrides for borderless mode line 2022-12-24 05:26:33 +02:00
Protesilaos Stavrou 5c63e6d10b
Add override samples for syntax highlighting 2022-12-23 05:34:26 +02:00
Protesilaos Stavrou 24fd053845
Remove faint samples from the manual
Now we provide the modus-themes-preset-overrides-faint which the users
can assign to the user options for palette overrides.
2022-12-23 05:20:24 +02:00
Protesilaos Stavrou 9cd3314018
Deprecate modus-themes-links; use mappings instead 2022-12-22 12:15:15 +02:00
Protesilaos Stavrou 5a12068494
Add presets of color overrides
Try either of those:

(setq modus-themes-common-palette-overrides modus-themes-preset-overrides-faint)
(setq modus-themes-common-palette-overrides modus-themes-preset-overrides-intense)
2022-12-22 08:07:18 +02:00
Protesilaos Stavrou 53e98dd349
Deprecate modus-themes-subtle-line-numbers; add mappings 2022-12-22 07:09:16 +02:00
Protesilaos Stavrou 53070c7d09
Add missing property drawers to the manual 2022-12-21 12:05:33 +02:00
Protesilaos Stavrou 718557503a
Make box buttons respond to palette overrides 2022-12-21 12:05:23 +02:00
Protesilaos Stavrou 37b634989c
Make it possible to also preview color mappings 2022-12-21 09:35:35 +02:00
Protesilaos Stavrou aa8e982cbc
Add some practical examples of palette overrides 2022-12-20 11:53:05 +02:00
Protesilaos Stavrou 383836f6b8
Clarify wording about list colors buffer name 2022-12-20 11:51:59 +02:00
Protesilaos Stavrou 76f81d0ad8
Add aliases for preview palette commands 2022-12-20 08:34:19 +02:00
Protesilaos Stavrou ca4c8f6e31
Add support for font-lock-doc-markup-face
Thanks to Mattias Engdegård for bringing 'font-lock-doc-markup-face'
to my attention and for explaining the stylistic demands it has.
2022-12-19 16:38:42 +02:00
Protesilaos Stavrou 0a8c4cdcd4
Acknowledge James Ferguson for change to tab mappings
This was done in commit 889c5dc where I introduced palette entries
specifically for tabs and also refined how the mode line entries are
implemented.

James provided feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3CCAMtGdSnrKDGdagT7vGC9DnBZnOvkbM%3D4Nxwn3ts2tdO8YmUnxw%40mail.gmail.com%3E>.
2022-12-19 06:25:14 +02:00
Protesilaos Stavrou dedbc595e4
Write entry in the manual about palette overrides 2022-12-18 09:32:33 +02:00
Protesilaos Stavrou 5f28f98709
Remove entry of obsolete user option 2022-12-18 08:45:34 +02:00
Protesilaos Stavrou 749322fdc3
Remove outdated information in sample config 2022-12-18 08:45:14 +02:00
Protesilaos Stavrou 31c1ab8e92
Add support for rcirc-color
Thanks to Philip Kaludercic for bringing this matter to my attention:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87mt7m6k6z.fsf%40posteo.net%3E>.
2022-12-18 06:56:25 +02:00
Protesilaos Stavrou 3fcf136507
Deprecate modus-themes-fringes; add 'fringe' mapping
The user can thus override the 'fringe' mapping to whatever colour
they prefer, instead of us hardcoding it to two shades of gray.

To make the 'fringe' invisible, set it to the main background.

Video tutorial on colour mappings:
<https://protesilaos.com/codelog/2022-12-17-modus-themes-v4-demo/>.
2022-12-18 06:13:46 +02:00
Protesilaos Stavrou 1b4238f51d
Add deuteranopia THEMES; remove the user option
Providing bespoke themes gives us the freedom to implement changes
wherever necessary without making the code more complex.  The now
discontinued 'modus-themes-deuteranopia' was a user option with
limited scope: it simply replaced green with blue in some contexts.
But a proper design for deuteranopia requires more than that.  These
new themes are the right solution and I am sure the people who need
them will greatly appreciate them.
2022-12-16 05:58:12 +02:00
Protesilaos Stavrou a736eebd67
Allow any weight in all relevant user options
Prior to this change some user options provided for a 'bold' style
which would apply a heavy typographic weight.  Since we have the
mechanism to add an arbitrary font weight, there is no reason to limit
those options to 'bold'.
2022-12-16 04:14:17 +02:00
Protesilaos Stavrou 7021b96548
Ensure modus-themes-org-blocks doc is up-to-date 2022-12-16 03:41:49 +02:00
Protesilaos Stavrou 24af1c4dff
Remove obsolete references from the manual (more TODOs) 2022-12-15 11:06:57 +02:00
Protesilaos Stavrou 6bf02afced
Remove "accented" from modus-themes-completions
The user has the option to override the bg-completion colour, which
gives them all they need.  I had already deprecated the "intense"
style earlier, though not from the docs.
2022-12-15 11:04:06 +02:00
Protesilaos Stavrou 5b73fc3059
Deprecate modus-themes-mode-line; add mode line mappings
Version 4 of the modus-themes is abstracting each theme's palette,
introduces semantic colour mappings, and expands the scope of the
palette overrides.  I am removing user options, but am actually giving
user more power over how to tweak the theme.  Overview:
<https://protesilaos.com/codelog/2022-12-07-modus-themes-4-colour-values-mappings/>.

As this diff demonstrates, we remove a lot of the complexity from the
themes.
2022-12-15 10:40:22 +02:00
Protesilaos Stavrou 04e2c1e1d5
Reinstate functionality of auto theme reload upon option switch
The 'modus-themes-custom-auto-reload' is the successor to the
now-deprecated 'modus-themes-inhibit-reload'.  The new name is more
descriptive and easier to reason about.

The functionality is now enabled by default.  I am using it with
'setopt' (Emacs 29) and think it is a user-friendly feature.

Thanks to Philip Kaludercic for the feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87h6y3gyxx.fsf%40posteo.net%3E>.

Philip is the author of the original 'modus-themes-inhibit-reload' and
the relevant setup.  I just made some minor tweaks for this "version
4" rewrite of the themes.  Any mistakes are my own.
2022-12-12 05:28:53 +02:00
Protesilaos Stavrou ddf4a812af
Remove explicit support for icomplete-vertical (default is OK) 2022-12-11 09:16:47 +02:00
Protesilaos Stavrou e896bebd38
Remove support for hl-defined
I cannot find the package anymore.
2022-12-11 09:12:06 +02:00
Protesilaos Stavrou a044561789
Remove explicit support for forge (default is OK) 2022-12-11 09:06:39 +02:00
Protesilaos Stavrou 38523f05ac
Remove explicit support for freeze-it (default is OK) 2022-12-11 09:04:52 +02:00
Protesilaos Stavrou 35e67b0b94
Reinstate support for annotate
I removed lots of packages to make things work (they were using
colours that I removed).  Now that I have a stable basis, I am
bringing some of them back.
2022-12-11 08:48:29 +02:00
Protesilaos Stavrou 7003edbade
Remove modus-themes-headings foreground variants
The user has more flexibility now by overriding the colour mappings
directly.  The "rainbow" we provided before was limited to
predetermined colours.

Read this for the general idea (I will provided detailed documentation
as well): <https://protesilaos.com/codelog/2022-12-07-modus-themes-4-colour-values-mappings/>.
2022-12-08 09:17:46 +02:00
Protesilaos Stavrou 7c770559a6
Simplify modus-themes-region; refine colours 2022-12-08 09:01:15 +02:00
Protesilaos Stavrou 1ae96698ec
Document indirect support for lin, pulsar (my packages)
Their faces are okay.
2022-12-03 11:25:04 +02:00
Protesilaos Stavrou 76929394f5
Remove support for Denote (I write Denote's faces)
It already uses styles that work well with the modus-themes.
2022-12-03 11:24:12 +02:00
Protesilaos Stavrou 7ac53f571e
Remove deprecated variables from code samples 2022-12-03 10:59:57 +02:00
Protesilaos Stavrou 3dfc5e4943
Deprecate modus-themes-paren-match; amplify colours 2022-12-03 10:55:41 +02:00
Protesilaos Stavrou 3adce8484b
Bring back support for centaur-tabs
I removed earlier in this refactoring process because it was depending
on faces/colours that I have since removed.  Now that things are
clear, I can support it again.
2022-12-03 08:27:14 +02:00
Protesilaos Stavrou 5e9c375f0d
Bring back support for powerline
I removed earlier in this refactoring process because it was depending
on faces/colours that I have since removed.  Now that things are
clear, I will start reintroducing packages.
2022-12-03 07:25:08 +02:00
Protesilaos Stavrou af620f1030
Add missing dots in modus-themes-headings docs 2022-12-02 05:41:26 +02:00
Protesilaos Stavrou e00fe9588a
Make modus-themes-headings affect Org agenda
This harmonises an inconsistency that existed before where those
headings were controlled by another user option.  That option is
deprecated in the interest of consistency and simplicity.
2022-12-02 05:27:40 +02:00
Protesilaos Stavrou 4610d1382c
Remove support for rainbow-blocks
Use prism.el by Adam Porter (alphapapa):
<https://github.com/alphapapa/prism.el>.
2022-12-01 15:09:35 +02:00
Protesilaos Stavrou c636f9c199
Deprecate modus-themes-org-agenda
It was complex and hard to maintain.
2022-12-01 12:01:48 +02:00
Protesilaos Stavrou 280c9e9094
Remove cfrs package
It was part of treemacs, which we no longer support.
2022-12-01 12:01:14 +02:00
Protesilaos Stavrou 8f8fcef637
Deprecate commands nobody used 2022-12-01 11:23:27 +02:00
Protesilaos Stavrou 4b2fd9f406
Revise modus-themes-completions
The intent is:

* Remove the subtle gray selection line.  It is not usable in several
  cases.

* Eliminate the distinction between 'selection' and 'popup'.  All UIs
  now have the same style.  This is not a problem in practice as I
  have revised the relevant colour values to work in both contexts.

* Remove the 'intense' variant, so as to reduce the number of colour
  combinations.  The code is simpler and we reduce the special colours
  that we would otherwise need to maintain.

Part of this refactoring for version 4.0.0 is to:

* Make the colour palettes smaller and more efficient.

* Introduce a mechanism of semantic colours (colour mappings), which
  lets us optimise for each theme and, potentially, introduce new
  themes.

* Amplify gray values to improve usability.

* Remove user options of dubious value and, generally, makes things
  easier to understand.
2022-12-01 11:10:47 +02:00
Protesilaos Stavrou e33a760971
Update the docs to reflect current development
I will explain everything on my website as well as the change log,
once version 4.0.0 is released.  What I have here is not final and I
am still testing for regressions.
2022-11-30 09:18:44 +02:00
Protesilaos Stavrou 683a76686e
Remove optional background and overline from headings
The intent is to reduce all the possible colour combinations in the
interest of maintainability.
2022-11-29 08:06:07 +02:00
Protesilaos Stavrou 18dd2457d2
Remove support for selectrum (deprecated in favour of Vertico) 2022-11-29 04:11:15 +02:00
Protesilaos Stavrou dd64df9213
Update the manual's acknowledgements
This is for wakamenod's report on the GitHub mirror about the bug
caused by commit f1cf9a1:
<https://github.com/protesilaos/modus-themes/issues/50>.

I have since reverted the offending commit.
2022-11-27 19:32:00 +02:00
Protesilaos Stavrou 7cc9bb0f41
Fix symbol in commit 606c774 2022-11-20 07:24:49 +02:00
Protesilaos Stavrou 606c774de4
Reword a statement in the manual 2022-11-20 07:16:30 +02:00
Protesilaos Stavrou 30b6228076
Add support for clojure-mode 2022-11-17 13:55:05 +02:00
Protesilaos Stavrou f1149c1800
Add support for agda2-mode
This is based on merge request 44 by Xinglu Chen on the GitLab mirror
from 2021-06-16:
<https://gitlab.com/protesilaos/modus-themes/-/merge_requests/44>.
That contribution could not be merged, as it exceeded the ~15 line
limit and thus required copyright assignment to the Free Software
Foundation.  The author became inactive soon thereafter despite their
stated intention to do the paperwork.

Thanks to Laith Bahodi for informing me about this in issue 48 on the
GitHub mirror: <https://github.com/protesilaos/modus-themes/issues/48>.

In principle, the agda project should be inheriting from font-lock
faces instead of hardcoding their own colour values: those do not play
nicely with themes.  If anyone familiar with agda reads this, I
encourage you to work with upstream to make things better for all
themes.  Also consider that adga cannot be tested without an
established setup for Haskell, which adds to the burden of maintaining
those faces at the theme level (I could not test them and only went by
screenshots and prior experience).
2022-11-01 06:24:38 +02:00
Protesilaos Stavrou c5c6a0f0ff
Acknowledge Aleksei Gusev for commit 5c9873c
This was done in pull request 47 on the GitHub mirror:
<https://github.com/protesilaos/modus-themes/pull/47>.

The contribution is on a single line and this is Aleksei's first
contribution to this project.  It thus does not require copyright
assignment to the Free Software Foundation.
2022-10-30 16:51:31 +02:00
Protesilaos Stavrou 66ff9ea64b
Update to modus-themes version 3.0.0 2022-10-28 06:48:46 +03:00
Protesilaos Stavrou 076a671f83
Add the backronym to the README and the manual 2022-10-28 06:30:33 +03:00
Protesilaos Stavrou 15f3ffa451
Tweak markup of all "nil" occurrences
This is to make the export to texinfo output:

     @code{nil}

Instead of a generic "nil".

This was already done in most placed, but some had escaped my
attention.  I was reminded to check again by commit 0f39eb3, courtesy
of Stefan Kangas.
2022-10-27 19:46:13 +03:00
Stefan Kangas 2a96ce0363
Use two spaces between sentences 2022-10-27 14:54:06 +03:00
Stefan Kangas 0f39eb3fd9
Properly quote non-nil in modus-themes.org
According to Emacs conventions, the generated texinfo should be:

    non-@code{nil}

We use the same solution as the Org manual to get that output.
2022-10-27 14:54:00 +03:00
Protesilaos Stavrou 638e92c481
Make olivetti-fringe use the main background
The previous style did not actually hide the fringes, as olivetti
would still fall back to reading the generic fringe face.

The intent of this change is to make the olivetti-fringe invisible.

Thanks to Matthias Fuchs for reporting the issue that helped me track
this problem.  This was done in issue 46 on the GitHub mirror:
<https://github.com/protesilaos/modus-themes/issues/46>.
2022-10-25 19:44:20 +03:00
Protesilaos Stavrou 1812d878fe
Use American English on 2 occasions in the manual
This is to conform with the standard in emacs.git.
2022-10-24 17:13:52 +03:00
Protesilaos Stavrou f900b843b2
Use the manual's "file" Org macro in two places
This is needed to output the correct '.texi' markup.
2022-10-24 17:11:22 +03:00
Protesilaos Stavrou c5c44fcd9e
Simplify wording of a statement in the manual 2022-10-24 17:09:21 +03:00
Protesilaos Stavrou d784a1591d
Add support for olivetti 2022-10-23 11:26:27 +03:00
Protesilaos Stavrou bc8604e93e
BREAKING Make modus-themes-fringes visible
Change the default value so that the background is a subtle gray.  The
idea is to provide a more usable out-of-the-box experience for those
who are not aware that the themes are customisable.

To restore the old default with the invisible fringes, add this to the
init file before loading the theme:

    (setq modus-themes-fringes nil)

As with all user options for themes, changes are applied upon theme
reload.
2022-10-23 04:11:05 +03:00
Protesilaos Stavrou 3c272ec34a
BREAKING Make modus-themes-hl-line intense
Change the default value so that the background of the currently
highlighted line with 'hl-line-mode' is a more intense gray than the
previous design.  The idea is to provide a more usable out-of-the-box
experience for those who are not aware that the themes are
customisable.

To restore the old default with the more subtle gray, add this to the
init file before loading the theme:

    (setq modus-themes-hl-line nil)

As with all user options for themes, changes are applied upon theme
reload.
2022-10-23 03:58:36 +03:00
Protesilaos Stavrou 681e031739
BREAKING Make modus-themes-completions intense
Change the default value so that the background of the selected line
is a more intense gray than the previous design.  The idea is to
provide a more usable out-of-the-box experience for those who are not
aware that the themes are customisable.

To restore the old default with the more subtle gray, add this to the
init file before loading the theme:

    (setq modus-themes-completions nil)

As with all user options for themes, changes are applied upon theme
reload.
2022-10-23 03:50:22 +03:00
Protesilaos Stavrou 9f4cdec106
Make dev version 3.0.0 instead of 2.8.0
I plan to introduce some breaking changes (nothing major, but still)
so it is better to express this in the version number.  This will be
done in the interest of a better out-of-the-box experience for most
users.  I am timing it to coincide with the cut of the emacs-29
branch, which is expected in November.
2022-10-23 03:34:20 +03:00
Protesilaos Stavrou 39830fccef
Reword modus-themes-fringes docs for clarity 2022-10-22 04:26:06 +03:00
Protesilaos Stavrou 0ff09b3ab6
Acknowledge Pablo Stafforini for the feedback in 4c45169
See https://gitlab.com/protesilaos/modus-themes/-/issues/170#note_1130421067
2022-10-19 05:54:48 +03:00
Protesilaos Stavrou 7872863eda
Use bespoke colors for the highlight-regexp faces
We cannot use our ordinary entries from each theme's palette as those
are not designed to handle such an edge case.  Those faces need to use
the inverse-video attribute which, in turn, affects the combinations
of color we can apply.  Our accented backgrounds are designed to
contrast well with our nominal main foreground values, whereas this
case demands colored backgrounds that contrast well with what would
normally be the main background color.  Furthermore, this case
requires that colored backgrounds are faithful to their name so that,
say, hi-yellow is yellowish.

Thanks to Kevin Kainan Li for the feedback on the mailing list, where
they informed me that the previous design was too dark/mute (and I
agreed with that assessment) and provided feedback on my samples:
<https://lists.sr.ht/~protesilaos/modus-themes/%3CCAMTq2Vp3Nnzv-i9wJdq4-OJ4X_QfWXySpUtAieBy0dgKLEOSBg%40mail.gmail.com%3E>.
2022-10-04 05:41:43 +03:00
Protesilaos Stavrou ad5cb41daf
Fix some typos 2022-10-01 10:52:35 +03:00
Protesilaos Stavrou 05f331d061
Fix typo 2022-10-01 10:51:20 +03:00
Protesilaos Stavrou 1d55785ab0
Update to version 2.7.0 2022-10-01 10:24:44 +03:00
Protesilaos Stavrou a7c17f36f1
Make minor rewordings in the manual 2022-10-01 10:23:54 +03:00
Protesilaos Stavrou c65ea67673
Make gnus-summary-low-unread inherit from italic
This helps differentiate it from the gnus-summary-high-unread face.

Thanks to Mark Simpson for pointing out the possibility of conflating
those two faces: <https://lists.sr.ht/~protesilaos/modus-themes/%3Cm2r0zszc2z.fsf@gmail.com%3E>.
2022-10-01 04:22:25 +03:00
Protesilaos Stavrou aed22dd122
Update Acknowledgements for commit b333550 2022-09-29 08:15:53 +03:00
Koen van Greevenbroek b333550383
Fix example configuration of circadian in modus manual 2022-09-29 08:15:10 +03:00
Protesilaos Stavrou 10a0c9f422
Reinstate support for centaur-tabs
I had removed support for centaur-tabs in commit 2235ce5 (done on
2022-08-02).  I wrote:

    centaur-tabs has a bug where it cannot read the value of a face if it
    uses the standard ':inherit' attribute.  I have sent a patch to fix it,
    but have received no response since February:
    <https://github.com/ema2159/centaur-tabs/pull/179>.

    Relevant reports:

    - <https://github.com/protesilaos/modus-themes/issues/30>
    - <https://gitlab.com/protesilaos/modus-themes/-/issues/288>
    - <https://github.com/protesilaos/modus-themes/issues/15>

    I am happy to reinstate support for centaur-tabs as soon as the package
    gets the maintenance it needs.

My patch/pull-request is now merged and the package is actively
maintained once again.  Hence the decision to bring back support for it,
as promised.
2022-09-20 08:39:38 +03:00
Protesilaos Stavrou e4ee971f53
Add prescient to list of supported packages 2022-09-11 05:26:33 +03:00
Protesilaos Stavrou 56844e1f8f
Acknowledge okamsn for commit c58ef64
The contribution is below the ~15 line threshold and thus does not
require copyright assignment to the Free Software Foundation.
2022-09-11 05:23:45 +03:00
Protesilaos Stavrou d0a62f6c95
Add node to the manual about goto-address-mode 2022-09-03 08:23:20 +03:00
Antonio Ruiz 6dd3c0ef81
Add support for crontab-mode 2022-09-02 05:32:12 +03:00
Protesilaos Stavrou c018c83c5e
Fix error by typo in c80eed8
Thanks to Luis Miguel Castañeda for reporting it:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C7h7d2oudpb.fsf@imaginarymagnitude.net%3E>.
2022-08-31 09:36:57 +03:00
Protesilaos Stavrou 777089c0ff
Document support for spell-fu
Thanks to Antonio Ruiz for the patch:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87fshnq7uv.fsf%40purelymail.com%3E>.

It is below the ~15 line threshold and thus requires no copyright
assignment to the Free Software Foundation.
2022-08-23 22:19:26 +03:00
Protesilaos Stavrou e85d2c14dc
Fix even more typos in the manual 2022-08-19 15:29:06 +03:00
Protesilaos Stavrou ea07008020
Fix more typos in the manual 2022-08-19 15:27:58 +03:00
Protesilaos Stavrou e4d698d445
Fix a couple of typos 2022-08-19 15:24:11 +03:00
Protesilaos Stavrou 976f52b34a
Update to version 2.6.0 2022-08-19 12:26:20 +03:00
Protesilaos Stavrou d654f0e1a6
Clarify wording about solaire 2022-08-19 12:21:43 +03:00
Protesilaos Stavrou 7a04a60292
Update acknowledgements
This is for commit 93c291e which is below the ~15 line threshold and
thus does not require copyright assignment to the free software
foundation.

The patch was sent by Paul David as pull request 39 over at the GitHub
mirror: <https://github.com/protesilaos/modus-themes/pull/39>
2022-08-04 07:57:09 +03:00
Protesilaos Stavrou 7d0cebf065
Add missing paren in the manual (same as 93c291e) 2022-08-04 07:56:09 +03:00
Protesilaos Stavrou 7bc79ba94e
REMOVE support for solaire-mode
Quoting from the manual:

    The 'solaire-mode' package dims the background of what it considers
    ancillary buffers, such as the minibuffer and Dired buffers.  The
    Modus themes used to support Solaire on the premise that the user
    was (i) opting in to it, (ii) understood why certain buffers were
    more gray, and (iii) knew what other adjustments had to be made to
    prevent broken visuals (e.g. the default style of the
    'modus-themes-completions' uses a subtle gray background for the
    selection, which with Solaire becomes practically invisible).

    However, the assumption that users opt-in to this feature does not
    always hold true in many cases as it is enabled by default in at
    least the very popular Doom Emacs configuration.  Thus, the
    unsuspecting user who loads 'modus-operandi' or 'modus-vivendi'
    without the requisite customizations is getting a sub-par
    experience; an experience that we did not intend.

    Because the Modus themes are meant to work everywhere, we cannot
    make an exception for Doom Emacs users.  Furthermore, we shall not
    introduce hacks, such as by adding a check in all relevant faces to
    be adjusted based on Solaire or whatever other package.  Hacks of
    this sort are unsustainable and penalize all users.  Besides, the
    themes are built into Emacs and we must keep their standard high.

    As such, 'solaire-mode' is not---and will not be---supported by the
    Modus themes.  Users who want it must style the faces manually.
    Below is some sample code, based on what we cover at length
    elsewhere in this manual:

    [...]
2022-08-04 06:30:51 +03:00
Protesilaos Stavrou 63bdbe120d
Clarify need for theme re-load in the manual
It is already mentioned elsewhere, but it is good to repeat it here as
the reader may be missing the context.
2022-08-04 06:01:20 +03:00
Protesilaos Stavrou 64f9378a51
Update to version 2.5.0 2022-08-03 14:04:14 +03:00
Protesilaos Stavrou d3decb214d
Remove support for paradox
I periodically test the packages we support to see if they have any
updates we need to cover but also to confirm that they work.  When I
tried paradox, it took over my C-c g binding which I have for Magit.  As
an Emacs user, I consider this an unacceptable transgression.

Looking at paradox's git repo, the project is not maintained.  If things
change, I am happy to reinstate support for it.
2022-08-03 09:31:33 +03:00
Protesilaos Stavrou 9d3d2b04e1
Remove support for frog-menu
I have not seen this package being used anywhere.  I suspect it is
because it has not found a niche between transient, hydra, and embark.

If you think this is a mistake, please let me know: I shall reconsider
this decision.
2022-08-03 09:20:18 +03:00
Protesilaos Stavrou d32abfe4b4
Remove explicit support for dynamic-ruler
1. The package does not build on my Emacs 29.
2. Its default faces are good enough even without our recolouring.
2022-08-03 09:11:58 +03:00
Protesilaos Stavrou b9b95bf7d0
Add support for chart.el (built-in) 2022-08-03 07:07:49 +03:00
Protesilaos Stavrou 2235ce5937
Remove support for centaur-tabs (unmaintained)
centaur-tabs has a bug where it cannot read the value of a face if it
uses the standard ':inherit' attribute.  I have sent a patch to fix it,
but have received no response since February:
<https://github.com/ema2159/centaur-tabs/pull/179>.

Relevant reports:

- <https://github.com/protesilaos/modus-themes/issues/30>
- <https://gitlab.com/protesilaos/modus-themes/-/issues/288>
- <https://github.com/protesilaos/modus-themes/issues/15>

I am happy to reinstate support for centaur-tabs as soon as the package
gets the maintenance it needs.
2022-08-02 13:05:37 +03:00
Protesilaos Stavrou 935da3bc3f
Remove explicit support for emacs-dashboard
It is still indirectly supported as it default faces have nothing
faulty.
2022-08-02 13:01:34 +03:00
Protesilaos Stavrou 8567d60bf0
Introduce complete demo of palette overrides 2022-07-26 19:13:57 +03:00
Protesilaos Stavrou 2e27e1c612
Update the manual's "Acknowledgements" 2022-07-26 19:13:24 +03:00
Protesilaos Stavrou d86f895418
Remove outdated reference to mct in the manual 2022-07-26 16:09:49 +03:00
Protesilaos Stavrou 00e30f1a1a
Note that Debian package is severely out-of-date
Even on Debian Sid, they are on version 1.0.2:
<https://packages.debian.org/sid/elpa-modus-themes>.

I don't think anyone should use that and will remove this entry from the
manual if things do not change in the near future.
2022-07-24 09:57:52 +03:00
Protesilaos Stavrou b95c576fb6
Address byte compilation warnings in doc strings
Thanks to Matt Armstrong for the feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87bktlvgyy.fsf@rfc20.org%3E>.
2022-07-19 08:39:14 +03:00
Protesilaos Stavrou a08c9618cd
Remove outdated entries from the manual 2022-07-19 08:36:28 +03:00
Protesilaos Stavrou 2860a94f78
Set org-document-title via modus-themes-headings
The user option 'modus-themes-headings' now reads a level 0 heading.  It
accepts the same list of properties as all other levels.  Currently only
the Org document title is covered, but we may cover more faces if need
be.

Sample:

    (setq modus-themes-headings
          '((0 . (variable-pitch light (height 1.9)))
            (1 . (variable-pitch light (height 1.6) overline))
            (2 . (variable-pitch regular (height 1.4) overline))
            (3 . (variable-pitch regular (height 1.3) overline))
            (4 . (rainbow (height 1.2)))
            (5 . (rainbow (height 1.1)))
            (t . (variable-pitch extrabold (height 1.05)))))

Read the documentation of 'modus-themes-headings' for the technicalities.

Thanks to Rudolf Adamkovič for proposing the idea on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cm2y1x5tewl.fsf@me.com%3E>.

Given this change, I am also tweaking the default foreground value of
the org-document-title.  It is a bit more saturated, but remains close
to the spirit of the previous one.
2022-07-08 17:08:24 +03:00
Protesilaos Stavrou b750324aba
REMOVE support for my mct package
A few months ago I announced that its development is discontinued.
Either use vertico or switch to what Emacs provides as a built-in
option:
<https://protesilaos.com/codelog/2022-04-14-emacs-discontinue-mct/>.
2022-07-06 15:27:53 +03:00
Protesilaos Stavrou d04a5f5251
REMOVE support for cursor-flash
Its default face should be visible enough.
2022-07-06 15:27:27 +03:00
Protesilaos Stavrou 7a1cbd71c7
Document support for denote as part of development 2022-07-05 10:54:54 +03:00
Protesilaos Stavrou 5b44ac6340
Add support for Denote
A package of mine that is available on GNU ELPA:
<https://protesilaos.com/emacs/denote>
2022-07-05 10:52:37 +03:00
Protesilaos Stavrou 563d00dafd
Make the manual's front matter easier to read 2022-07-01 07:51:58 +03:00
Protesilaos Stavrou 712a9f446b
Add support for leerzeichen
Package source: <https://github.com/fgeller/leerzeichen.el>.
2022-06-30 09:59:50 +03:00
Protesilaos Stavrou a66b30547e
REMOVE support for org-treescope
The package points to a GitHub repo, which is archived.  The current
source is on GitLab, but the package is not updated accordingly.  This
makes me believe it is not actively maintained and am thus removing it
from the list.
2022-06-28 08:56:48 +03:00
Protesilaos Stavrou 8fb0e4abca
Mention the fontaine package in the manual
I am its author.
2022-06-26 17:47:57 +03:00
Protesilaos Stavrou 58402fbddb
Mention the lin package in the manual
I am its author.
2022-06-26 17:47:28 +03:00
Protesilaos Stavrou e342e3568c
Add support for info+
As is the case with PACKAGE+ packages from the Emacs Wiki, info+ defines
lots of faces that hardcode colour values instead of inheriting from
basic faces.  It does so for no good reason.  Furthermore, these faces
colourise too much, making the buffer harder to read.

Some of the changes I introduce here outright remove colouration, while
others align the various constructs with the overall aesthetic of the
themes.

Note that, by default, info+ adds clickable buttons to glossary terms.
This produces awkward combinations such as by buttonising the "string"
component inside of what actually is a function's argument.  So you
have, say, FORMAT-[STRING] where "[]" represents the button: the FORMAT
gets one face and the [STRING] another, even though they are part of a
single argument.  To me this looks broken and is counter-productive,
though it is not up to the theme to decide how packages fontify the
various constructs.  At any rate, button styles at the theme level are
controlled by the user option 'modus-themes-box-buttons'.

Thanks to Jonas Collberg for the feedback in issue 33 over at the GitHub
mirror: <https://github.com/protesilaos/modus-themes/issues/33>.
2022-06-14 10:23:44 +03:00
Protesilaos Stavrou 6f2b048528
Remove support for built-in vc-annotate
It has not been working properly for a long time now.  Colours are unset
and are not re-applied when switching between modus-operandi and
modus-vivendi.

Furthermore, the way vc-annotate-color-map intersects with
vc-annotate-background-mode puts us in an awkward spot: when the mode is
non-nil, the mapped values are used as backgrounds WITHOUT giving us the
chance to make the appropriate adjustments to the foreground (so we end
up with inaccessible colour combinations).  This means that we must fix
a problem which is not ours by overriding the user option of the
background altogether.  A theme outright disabling user options is bad
form.

Even documenting a user-level set of configurations will not suffice, as
the results are unreliable.  I tried the code which I copy further below
to test annotation with/without background, plus the change in values
when switching between modus-operandi and modus-vivendi.  Again, colours
are not updated properly (I know the buffer of M-x vc-annotate needs to
be generated again), as modus-operandi may retain the values set by
modus-vivendi or vice-versa.

Ultimately, I feel vc-annotate needs to be refactored to use ordinary
faces in ordinary ways.  Or, at least, not try to outsmart the
user/theme about the choice of colours.

Thanks to Philip Kaludercic for starting the thread about the
vc-annotate-background-mode which reminded me about this problem:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C875ylfxkgi.fsf@posteo.net%3E>.

The code I alluded to:

    (setq vc-annotate-background-mode nil)

    (defun my-modus-themes-vc-annotate ()
      ;; Actual values are for demo purposes
      (modus-themes-with-colors
        (if vc-annotate-background-mode
            (setq vc-annotate-background bg-alt
                  vc-annotate-color-map
                  `((20 .  ,red-intense-bg)
                    (40 .  ,red-subtle-bg)
                    (60 .  ,red-refine-bg)
                    (80 .  ,yellow-intense-bg)
                    (100 . ,yellow-subtle-bg)
                    (120 . ,yellow-refine-bg)
                    (140 . ,magenta-intense-bg)
                    (160 . ,magenta-subtle-bg)
                    (180 . ,magenta-refine-bg)
                    (200 . ,cyan-intense-bg)
                    (220 . ,cyan-subtle-bg)
                    (240 . ,cyan-refine-bg)
                    (260 . ,green-intense-bg)
                    (280 . ,green-subtle-bg)
                    (300 . ,green-refine-bg)
                    (320 . ,blue-intense-bg)
                    (340 . ,blue-subtle-bg)
                    (360 . ,blue-refine-bg)))
          (setq vc-annotate-background nil
                vc-annotate-color-map
                `((20 . ,red)
                  (40 . ,magenta)
                  (60 . ,magenta-alt)
                  (80 . ,red-alt)
                  (100 . ,yellow)
                  (120 . ,yellow-alt)
                  (140 . ,fg-special-warm)
                  (160 . ,fg-special-mild)
                  (180 . ,green)
                  (200 . ,green-alt)
                  (220 . ,cyan-alt-other)
                  (240 . ,cyan-alt)
                  (260 . ,cyan)
                  (280 . ,fg-special-cold)
                  (300 . ,blue)
                  (320 . ,blue-alt)
                  (340 . ,blue-alt-other)
                  (360 . ,magenta-alt-other))))))

    (add-hook 'modus-themes-after-load-theme-hook #'my-modus-themes-vc-annotate)
2022-06-05 20:14:33 +03:00
Protesilaos Stavrou 191f2a6856
Update to version 2.4.0 2022-06-01 13:05:51 +03:00
Protesilaos Stavrou 1901552a97
Clarify note about git-gutter tweaks in Doom Emacs 2022-06-01 09:53:56 +03:00
Protesilaos Stavrou 3f593fd4e0
Add support for EIN (Emacs IPython Notebook)
Thanks to Maxime Tréca for the feedback in issue 31 over at the GitHub
mirror: <https://github.com/protesilaos/modus-themes/issues/31>.
2022-05-27 17:23:53 +03:00
Protesilaos Stavrou 810a035768
Add note about custom hl-todo colours 2022-05-26 08:17:52 +03:00
Protesilaos Stavrou 9c80eba37d
Update manual's Acknowledgements
Adding Manuel Giraud for commits 04a70d2, aadf178.
2022-05-20 06:50:04 +03:00
Protesilaos Stavrou b6285162d8
Add note in manual about git-gutter on Doom Emacs
Thanks to Gonçalo Marrafa for reporting the issue, testing the code on
Doom Emacs, and suggesting the inclusion of the reference to the
'after!' call.
2022-05-12 21:08:04 +03:00
Protesilaos Stavrou 1a900505bd
Document how to deal with byte compilation errors 2022-05-12 13:07:38 +03:00
Protesilaos Stavrou 5795c7c29e
Reword a sentence; remove outdated phrase 2022-05-12 13:06:39 +03:00
Protesilaos Stavrou 6117ec171b
Add note in manual about PHP multiline comments 2022-05-10 06:32:44 +03:00
Protesilaos Stavrou e034dcaa16
Acknowledge Andrew Tropin for Guix package
Current patch: <https://issues.guix.gnu.org/55268>.
2022-05-05 21:41:27 +03:00
Protesilaos Stavrou 522da95261
Add links to two more articles on the themes 2022-05-04 07:38:25 +03:00
Protesilaos Stavrou 14161b3c08
Reword a statement in the manual 2022-05-04 07:37:56 +03:00
Protesilaos Stavrou f50c7bb579
Remove outdated docs about Avy
Its colours have been reviewed.  Read:
<https://protesilaos.com/codelog/2022-04-20-modus-themes-case-study-avy/>.
2022-05-04 07:33:24 +03:00
Protesilaos Stavrou 94f39c7c6f
Disable keycast padding in lieu of better solution 2022-05-03 18:28:24 +03:00
Protesilaos Stavrou a1752787db
Add support for calibredb
I have tried to limit the wanton use of colour in the relevant buffers
and also align the package with the overall style of the themes.

The currently selected line is affected by the user option
'modus-themes-hl-line'.

Thanks to Ivan Popovych for the feedback over at the official mailing
list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87zgkgroi7.fsf%40gmail.com%3E>.
2022-04-22 08:52:46 +03:00