Commit graph

2708 commits

Author SHA1 Message Date
JD Smith e8dee25bd6 Rewrite modus-themes-with-color to use cl-symbol-macrolet
To address bugs associated with real color vs. mapped color ordering
and other issues, we swap the let* form construction for
cl-symbol-macrolet.
2026-01-04 09:37:20 -05:00
Protesilaos Stavrou 53fa9fd23d
Document how users can configure vc-annotate colours 2026-01-03 07:55:35 +02:00
Protesilaos Stavrou 3247c5d0f7
Add support for the faces of my pulsar package
Their colours are consistent with Modus by default, but they will not
necessarily look right in Modus derivatives.
2026-01-02 12:48:46 +02:00
Protesilaos Stavrou d1a9fbb4e6
Add support for the faces of my lin package
Their colours are consistent with Modus by default, but they will not
necessarily look right in Modus derivatives.
2026-01-02 12:47:00 +02:00
Protesilaos Stavrou 5b4747748e
Port emacs.git commit e09990891ffac9fa20385a8a38a18edf2e27d246
This is done by Eshel Yaron, as discussed on the mailing list:
<https://lists.gnu.org/archive/html/emacs-devel/2026-01/msg00011.html>.
2026-01-02 11:33:54 +02:00
Protesilaos Stavrou d1037f1322
Update to modus-themes version 5.2.0 2025-12-31 10:34:19 +02:00
Protesilaos Stavrou fc20e2bf7a
Cover the xref-file-header face 2025-12-28 11:28:54 +02:00
Protesilaos Stavrou 89185784ea
Fix typo in doc string 2025-12-28 08:31:47 +02:00
Protesilaos Stavrou 6dcd369037
Use a higher luminance value for modus-themes-generate-gradient 2025-12-23 07:58:45 +02:00
Protesilaos Stavrou cd01e5ead6
Use shorthands in the tests' file 2025-12-23 07:17:20 +02:00
Protesilaos Stavrou d673df22ca
Make small tweaks to modus-themes-test-inheritance 2025-12-23 07:06:55 +02:00
Protesilaos Stavrou 46d4b49266
Update the manual on account of commit 7a86cf4 2025-12-19 15:06:58 +02:00
Protesilaos Stavrou 7a86cf49a8
Revise modus-themes-with-colors to work with dynamic variables
This is how it used to be. I am addressing a regression that was
introduced in Modus themes version 5.0.0.

Thanks to Alexandr Semenov and realazy for testing my patch in issue
170: <https://github.com/protesilaos/modus-themes/issues/170>.
2025-12-19 15:04:34 +02:00
Protesilaos Stavrou 4ac7fdd6c7
Rewrite the completion table and expand it with group and display sort functions 2025-12-13 04:56:09 +02:00
Protesilaos Stavrou c8a6aa6998
Apply a faint foreground to marginalia-file-name 2025-12-13 04:55:29 +02:00
Protesilaos Stavrou 03c716e5bb
Merge pull request #189 from basil-conto/blc/spell
Fix some docstring typos
2025-12-11 08:44:16 +02:00
Protesilaos Stavrou cb99f74bc9
Merge pull request #188 from rudolf-adamkovic/main
Fix incorrect face inheritance affecting AUCTeX
2025-12-11 08:44:05 +02:00
Protesilaos Stavrou 0358a2a460
Merge pull request #190 from basil-conto/blc/push
Minor logic simplifications
2025-12-11 08:42:51 +02:00
Basil L. Contovounesios 83670578ea
Minor logic simplifications
Prefer push over add-to-list when membership equal-ity is not
needed.  Simplify some boolean expressions.
2025-12-09 14:06:08 +01:00
Basil L. Contovounesios e1154773ce
Fix some docstring typos 2025-12-09 13:56:01 +01:00
Rudolf Adamkovič 9649a18f69 Fix incorrect face inheritance affecting AUCTeX 2025-12-08 14:35:29 +01:00
Protesilaos Stavrou 64735b7df0
Remove duplicate entries for faces
Thanks to Basil L. Contovounesios for pointing this out in issue 185:
<https://github.com/protesilaos/modus-themes/issues/185>.
2025-12-06 09:59:42 +02:00
Protesilaos Stavrou 703dad8fd1
M-x untabify and then re-indent the buffer 2025-12-06 09:46:09 +02:00
Protesilaos Stavrou 582f53b07b
Add doc string to modus-themes--modus-theme-p 2025-12-06 09:45:36 +02:00
Protesilaos Stavrou 175a519494
Tweak the adjustment for derivative backgrounds in modus-themes-generate-palette and add TODO about it 2025-12-06 09:39:44 +02:00
Protesilaos Stavrou 53f461b397
Merge pull request #184 from PierreTechoueyres/main
Fix modus-themes-toggle and modus-themes--disable-themes
2025-12-03 09:54:14 +02:00
Pierre Téchoueyres 725bf50aba Fix modus-themes-toggle by using modus-themes-get-current-theme 2025-12-02 21:53:03 +01:00
Pierre Téchoueyres bf9dfed400 Add modus-themes--modus-theme-p predicate.
Rewrite modus-themes-get-current-theme and modus-themes--disable-themes to use it
2025-12-02 21:51:18 +01:00
Pierre Téchoueyres 7d06212953 Fix modus-themes--disable-themes to follow modus-themes-disable-other-themes
Disable themes of the modus collection when the value of the variable
is nil as stated in the docstring.
2025-12-02 21:47:30 +01:00
Protesilaos Stavrou 3cc6f7fec2
Implement a completions group-function and use unique category 2025-12-02 05:24:44 +02:00
Protesilaos Stavrou 2c901c9969
Make derived modus-themes-define-derivative-command doc strings a bit shorter 2025-11-30 19:00:56 +02:00
Protesilaos Stavrou c41281151f
Adjust the intensity of the derived coloured backgrounds in modus-themes-generate-palette 2025-11-29 07:13:07 +02:00
Protesilaos Stavrou b238abe7fc
Remove one mapping from modus-themes-generate-palette
It will be inherited from the underlying core palette. Styling this
here is not important.
2025-11-29 07:12:53 +02:00
Protesilaos Stavrou bcaf0835fd
Require color.el at all times
This is because other packages may use some of the color-related
functions we provide without calling modus-themes-generate-palette.
2025-11-29 07:12:39 +02:00
Protesilaos Stavrou 117875cb12
Rewrite modus-themes-get-current-theme to work with many custom-enabled-themes
Thanks to Pierre Téchoueyres for reporting the scenario where multiple
other themes are loaded on top of a Modus theme. This was done in
issue 182: <https://github.com/protesilaos/modus-themes/issues/182>.
2025-11-28 07:41:48 +02:00
Protesilaos Stavrou 2a32f92782
Remove obsolete argument from one modus-themes-get-current-theme call (see commit 7076680) 2025-11-26 18:47:28 +02:00
Protesilaos Stavrou 7076680932
Remove logic of theme loading from modus-themes-get-all-known-themes
It has no business there. This is something I used to do long ago and
I tried to keep it for the upgrade to version 5.0.0. I believe we are
safe without it, but I guess we will find out.
2025-11-26 18:34:38 +02:00
Protesilaos Stavrou 344946ac0e
Make modus-themes-activate load a theme if we cannot operate on it
Annotate the code to better communicate intent.
2025-11-26 18:31:22 +02:00
Protesilaos Stavrou f4474129e6
Simplify how modus-themes-generate-palette falls back to cool or warm preference 2025-11-26 13:07:03 +02:00
Protesilaos Stavrou 1ee7c20971
Fix modus-themes-generate-palette old assumption about the six accent colours
This was fine when I originally implemented it, but then I changed
some other parts and forgot to update this one...
2025-11-26 13:06:27 +02:00
Protesilaos Stavrou ffdee3a436
Tweak a couple of derived mappings in modus-themes-generate-palette 2025-11-26 07:19:20 +02:00
Protesilaos Stavrou fdcbb99be2
Use the correct foreground for org-dispatcher-highlight and make it bold unconditionally 2025-11-26 06:33:30 +02:00
Protesilaos Stavrou 6fc7630666
Document how to activate derivative themes 2025-11-26 06:30:22 +02:00
Protesilaos Stavrou fc3783e5d3
Also autoload modus-themes-activate 2025-11-26 06:23:38 +02:00
Protesilaos Stavrou dbbfff6582
Make modus-themes-activate a public function
I plan to mention it in the manual.
2025-11-26 06:16:57 +02:00
Protesilaos Stavrou 0958eb8e48
Reduce all generated colors to 6 digits (see commit 1129cf5) 2025-11-26 06:04:43 +02:00
Protesilaos Stavrou 1129cf5f92
Define helper to reduce a color from 4 digits per triplet to 2 2025-11-26 06:04:00 +02:00
Protesilaos Stavrou ecfd90d430
Make copy of color-blend because we need it for older versions 2025-11-26 06:03:09 +02:00
Protesilaos Stavrou 7bfc18d130
Be consistent with the terminology I am using in one comment
I have "cool" elsewhere, so better not confuse people.
2025-11-25 16:00:34 +02:00
Protesilaos Stavrou 3b0bbaa779
Simplify modus-themes-color-warm-p
Thanks to Stefan Monnier for pointing this out on the emacs-devel
mailing list: <https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00996.html>.

It is what I was trying to do before with 'color-distance', per the
comment right above:

    ;; NOTE 2025-11-25: I used to rely on `color-distance', thinking that
    ;; it would do the right thing here:
    ;;
    ;;     (> (color-distance color "#ff0000") (color-distance color "#0000ff"))
    ;;
    ;; But my understanding of "warm" versus "cold" is simple, so better
    ;; do it my way.

But I did not originally see the simpler modus-themes-color-warm-p, so here we are!
2025-11-25 14:15:40 +02:00