Commit graph

75 commits

Author SHA1 Message Date
Protesilaos Stavrou 0a6f5d33a3
Mention zed-modus-themes in the README.md
A project by @vitallium.
2026-04-05 16:24:20 +03:00
Protesilaos Stavrou d763988f80
Mention hugo-modus in the README.md
I am putting it here instead of the manual. The latter is synchronised
with emacs.git and I do not want to have any issues about mentioning
projects that may not be in line with GNU policy.
2026-04-05 16:16:54 +03:00
Protesilaos Stavrou 26dd0fabb1
Remove an obsolete option from the README.md sample configuration 2025-11-01 07:03:44 +02:00
Protesilaos Stavrou 1f42a8165d
Expand the README.md with sample config and note about Modus as a platform 2025-10-03 09:36:49 +03:00
Protesilaos Stavrou f4237bdb02
Update development links 2024-01-17 04:54:30 +02:00
Protesilaos Stavrou 7e5de3db9c
Simplify the README.md 2022-12-27 15:44:19 +02:00
Protesilaos Stavrou bd049491d5
Add warning in the README.md 2022-12-18 06:18:30 +02:00
Protesilaos Stavrou 7ac53f571e
Remove deprecated variables from code samples 2022-12-03 10:59:57 +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 076a671f83
Add the backronym to the README and the manual 2022-10-28 06:30:33 +03:00
Protesilaos Stavrou a9399d08ce
Remove warning about solaire-mode from the README
I removed support for it in commit 7bc79ba.  Please read the commit
message for the explanation or check the manual:
<https://protesilaos.com/emacs/modus-themes#h:439c9e46-52e2-46be-b1dc-85841dd99671>.
2022-08-04 08:06:37 +03:00
paul david 93c291e10e
README: Trivial fix for missing parens. 2022-08-04 14:50:30 +10:00
Protesilaos Stavrou 74e773a8a4
Warn Doom Emacs users about Solaire 2022-06-23 06:19:11 +03:00
Protesilaos Stavrou d68d0b64a6
Update theme sources in the README 2022-06-14 08:15:29 +03:00
Protesilaos Stavrou 173c6685ac
Escape URLs in README.md to avoid 404 errors 2022-04-21 10:57:14 +03:00
Protesilaos Stavrou c71114127c
Make package sources easier to find 2022-04-21 10:04:40 +03:00
Protesilaos Stavrou 505d7f279a
Document 2367a9c in sample code 2022-03-23 10:01:41 +02:00
Protesilaos Stavrou af766ed1da
Clarify that built-in themes cannot use 'require'
This commit is in response to this thread:
<https://lists.gnu.org/archive/html/help-gnu-emacs/2022-03/msg00049.html>.

Thanks to Philip Kaludercic for bringing the issue to my attention.
2022-03-04 10:55:33 +02:00
Protesilaos Stavrou 0c3bc01d37
Add boolean option modus-themes-intense-mouseovers
Thanks to John Haman for the feedback in issue 290:
<https://gitlab.com/protesilaos/modus-themes/-/issues/290>.
2022-02-26 18:19:45 +02:00
Protesilaos Stavrou c98a35c11b
Update sample for modus-themes-mode-line 2022-02-26 15:32:05 +02:00
Protesilaos Stavrou af764931f2
Add minor documentation tweaks 2022-02-26 14:17:38 +02:00
Protesilaos Stavrou f3ff0bc008
REFACTOR modus-themes-completions to an alist type
The user option 'modus-themes-completions' now accepts an alist value
instead of a symbol.  For example:

    (setq modus-themes-completions '((matches . (extrabold))
                                     (selection . (semibold accented))
                                     (popup . (accented intense))))

The doc string or the manual explains the details.

All old values, such as 'opinionated' and 'moderate' ARE IGNORED.

This change is necessary as the old design was inflexible and led to
awkward compromises with the choice of colours and overall looks.

This is a MAJOR CHANGE for Ivy and Helm, as their default looks are now
subtle, aligning them with all other completions UIs.  Users who
preferred the old style can use something like this:

    (setq modus-themes-completions '((matches . (background intense))
                                     (selection . (accented intense))
                                     (popup . (accented intense))))

Or simply:

    (setq modus-themes-completions '((t background intense accented)))

Again, please read the docs.

Furthermore, the new 'modus-themes-completions' finally harmonises all
completion UIs supported by the themes.  This means that it also applies
to Corfu, Company, and the Popup library.

The faces of all affected packages have been reviewed to ensure
theme-wide consistency and/or keep things simple.

Thanks to Daniel Mendler for the feedback in issue 278:
<https://gitlab.com/protesilaos/modus-themes/-/issues/278>.
2022-02-22 11:37:48 +02:00
Protesilaos Stavrou 8020416369
Add missing sample of modus-themes-box-buttons
This user option was added in commit d12bbe4.
2022-02-15 07:26:54 +02:00
Protesilaos Stavrou 993fd2ebd9
Update sample code of modus-themes-completions 2022-02-10 17:24:43 +02:00
Protesilaos Stavrou 8396118da7
Add 'intense' style to modus-themes-mail-citations 2022-01-22 08:14:33 +02:00
Protesilaos Stavrou d370604bfa
Add modus-themes-markup customisation option
This affects constructs such as =verbatim= and ~code~ in Org, `code` in
Markdown, `code' in Info, and more.

* Change the default style for code markup in Org and others so that it
  only uses a foreground value instead of a combination of foreground
  and gray background.

* The old style of a gray background with a very subtle foreground has
  been retired.  It did not work well in certain contexts and it no
  longer feels consistent with the rest of the theme due to changes such
  as in commit 2d5ed2f.

* The new default works better for literate programming with Org, as
  #+RESULTS which output lines with the 'org-code' face do not have a
  background (same as the default for source blocks, which makes things
  look consistent).

* The new default also combines naturally with the default style of Org
  mode to show emphasis markers.

Thanks to Rudolf Adamkovič for the feedback in issue 274:
<https://gitlab.com/protesilaos/modus-themes/-/issues/274>.
2022-01-17 15:02:44 +02:00
Protesilaos Stavrou 5b28ddb193
BREAKING specify padding in modus-themes-mode-line
Deprecated the user option 'modus-themes-mode-line-padding' and made the
user option 'modus-themes-mode-line' accept a natural number directly.
When the number is greater than 1, it adds N extra padding.

This is part of the major refactoring that is underway to clean up and
simplify the code of the themes for version 2.0.0:
<https://gitlab.com/protesilaos/modus-themes/-/issues/259>.
2021-12-05 22:21:44 +02:00
Protesilaos Stavrou ca459b0ad9
BREAKING CHANGES: scaled/variable-pitch headings
The following variables no longer have any effect:

+ modus-themes-scale-headings
+ modus-themes-variable-pitch-headings
+ modus-themes-scale-1
+ modus-themes-scale-2
+ modus-themes-scale-3
+ modus-themes-scale-4
+ modus-themes-scale-title

Instead everything is consolidated in two variables:

+ modus-themes-headings
+ modus-themes-org-agenda

The paradigm for those is the same (read their doc strings for further
details):

+ To set the height of a heading, just specify a floating point.
+ To make a specific heading use a proportionately spaced font, simply
  include variable-pitch in the list of properties.

This is part of the major refactor that is underway to clean up and
simplify the code of the themes for version 2.0.0:
<https://gitlab.com/protesilaos/modus-themes/-/issues/259>.
2021-12-05 16:32:22 +02:00
Protesilaos Stavrou 7ad4f5c119
BREAKING remove small scale from Org agenda
It never worked well, as it caused alignment issues.  There is nothing
we can do at the theme level to fix the issue: Org should have another
way to aligning to a specific length instead of font-based spacing.

This is part of the progress towards version 2.0.0 of the themes.  See
issue 259: <https://gitlab.com/protesilaos/modus-themes/-/issues/259>.
2021-12-05 13:14:59 +02:00
Protesilaos Stavrou 78057f369c
BREAKING: Consolidate all deuteranopia styles
Everything should now be subject to a single toggle:
modus-themes-deuteranopia.  The modus-themes-success-deuteranopia is
thus superseded, while the individual deuteranopia-friendly styles for
diffs and the Org agenda's habit graph are altogether removed (there is
no clean way to notify the user of their deprecation---apologies for the
inconvenience!).

* * *

Also read issue 259 for other possible changes for version 2.0.0:
<https://gitlab.com/protesilaos/modus-themes/-/issues/259>.
2021-12-02 16:44:35 +02:00
Protesilaos Stavrou 49eefc187d
BREAKING: Remove "foreground only" diffs
There is a new section in the manual for those who want to restore that
style.  I have been meaning to remove it for a long time, because it is
not up to the established standard of the themes, but there was no good
opportunity to do so.  Now that we are approaching version 2.0.0 of the
themes, it is right to make such backward-incompatible changes.

Short version of what is in the manual:

    (defun my-modus-themes-custom-faces ()
      (modus-themes-with-colors
        (custom-set-faces
         `(modus-themes-diff-added ((,class :background unspecified :foreground ,green))) ; OR ,blue for deuteranopia
         `(modus-themes-diff-changed ((,class :background unspecified :foreground ,yellow)))
         `(modus-themes-diff-removed ((,class :background unspecified :foreground ,red)))

         `(modus-themes-diff-refine-added ((,class :background ,bg-diff-added :foreground ,fg-diff-added)))
         ;; `(modus-themes-diff-refine-added ((,class :background ,bg-diff-added-deuteran :foreground ,fg-diff-added-deuteran)))
         `(modus-themes-diff-refine-changed ((,class :background ,bg-diff-changed :foreground ,fg-diff-changed)))
         `(modus-themes-diff-refine-removed ((,class :background ,bg-diff-removed :foreground ,fg-diff-removed)))

         `(modus-themes-diff-focus-added ((,class :background ,bg-dim :foreground ,green))) ; OR ,blue for deuteranopia
         `(modus-themes-diff-focus-changed ((,class :background ,bg-dim :foreground ,yellow)))
         `(modus-themes-diff-focus-removed ((,class :background ,bg-dim :foreground ,red)))

         `(modus-themes-diff-heading ((,class :background ,bg-alt :foreground ,fg-main)))

         `(diff-indicator-added ((,class :foreground ,green))) ; OR ,blue for deuteranopia
         `(diff-indicator-changed ((,class :foreground ,yellow)))
         `(diff-indicator-removed ((,class :foreground ,red)))

         `(magit-diff-added ((,class :background unspecified :foreground ,green-faint)))
         `(magit-diff-changed ((,class :background unspecified :foreground ,yellow-faint)))
         `(magit-diff-removed ((,class :background unspecified :foreground ,red-faint)))
         `(magit-diff-context-highlight ((,class :background ,bg-dim :foreground ,fg-dim))))))

    ;; This is so that the changes persist when switching between
    ;; modus-operandi and modus-vivendi
    (add-hook 'modus-themes-after-load-theme-hook #'my-modus-themes-custom-faces)

Thank you for your understanding!

* * *

Also read issue 259 for other possible changes for version 2.0.0:
<https://gitlab.com/protesilaos/modus-themes/-/issues/259>.
2021-12-02 13:26:30 +02:00
Protesilaos Stavrou 435574d081
Let modus-themes-headings accept a weight property
Thanks to Christian Tietze for suggesting this idea in issue 248:
<https://gitlab.com/protesilaos/modus-themes/-/issues/248>.
2021-10-27 18:23:51 +03:00
Protesilaos Stavrou 45b92cf805
Update links to official docs 2021-10-23 22:52:17 +03:00
Protesilaos Stavrou ea9e46f3a0
Add sample configuration without use-package 2021-10-14 17:51:25 +03:00
Protesilaos Stavrou 67c57ba4dd
Add modus-themes-mode-line-padding option
Thanks to Guilherme Semente and Manuel Uberti for the feedback in issue
245: <https://gitlab.com/protesilaos/modus-themes/-/issues/245>.
2021-10-11 19:43:43 +03:00
Protesilaos Stavrou 504510419e
Remove out-of-date reference in the README
This is because mixed fonts are disabled by default, per commit 9b4900e.
2021-10-10 23:46:49 +03:00
Protesilaos Stavrou 70570a7161
Introduce modus-themes-intense-markup toggle
When set to non-nil, it makes constructs like Org verbatim and inline
code more colourful.

Thanks to Stefan Kangas for the feedback in issue 238:
<https://gitlab.com/protesilaos/modus-themes/-/issues/238>.
2021-10-04 10:59:15 +03:00
Protesilaos Stavrou e962bc80cf
Update README to include modus-themes-mixed-fonts 2021-10-02 14:19:01 +03:00
Protesilaos Stavrou 32e86cd1da
Add 'faint' property to modus-themes-lang-checkers
Thanks to Morgan Smith for suggesting the idea in issue 239:
<https://gitlab.com/protesilaos/modus-themes/-/issues/239>.

I also fixed some errors with the doc string and the corresponding entry
in the manual which referenced a nonexistent symbol of 'text-only'
instead of the correct 'text-also'.
2021-09-30 11:38:02 +03:00
Protesilaos Stavrou 5251a7bfd2
Update README with note about fonts
Prompted by issue 9 at the Github mirror:
<https://github.com/protesilaos/modus-themes/issues/9>.

Also related to issue 196 on the main repo:
<https://gitlab.com/protesilaos/modus-themes/-/issues/196>.
2021-09-23 15:12:26 +03:00
Protesilaos Stavrou acd3befccf
Add 'event' key to modus-themes-org-agenda 2021-09-10 10:57:12 +03:00
Protesilaos Stavrou 5472fc0f6d
New defcustom: modus-themes-tabs-accented
Check issue 229 for screenshots:
<https://gitlab.com/protesilaos/modus-themes/-/issues/229>.
2021-07-30 14:14:47 +03:00
Protesilaos Stavrou 0e7c5c6a16
Add 'padded' property to modus-themes-mode-line
Thanks to Manuel Uberti for making the proposal in issue 228:
<https://gitlab.com/protesilaos/modus-themes/-/issues/228>.
2021-07-28 10:43:06 +03:00
Protesilaos Stavrou d061b3d56a
Remove note about old packages
They are no longer relevant, following the removal of the old packages
from GNU ELPA.  The update was posted on issue 174:
<https://gitlab.com/protesilaos/modus-themes/-/issues/174>.
2021-07-17 11:15:36 +03:00
Protesilaos Stavrou e85b0f5f90
Update documentation on modus-themes-lang-checkers
Expands on commits 133e0abb0c and 05dfe38f41.  The latter was submitted
by Philip Kaludercic in merge request 46:
<https://gitlab.com/protesilaos/modus-themes/-/merge_requests/46>.
2021-07-11 20:14:41 +03:00
Protesilaos Stavrou 68b8966422
Make modus-themes-links a list of properties
+ The new style of setting possible combinations is that of a list of
  properties (symbols) as explained in the variable's doc string or in
  the manual.  This makes it easier to extend the set of possible
  options.  We do just that by adding three new properties, which
  combine to more styles overall.

+ Old styles are preserved and will continue to be valid for the
  foreseeable future---definitely until after version 2.0.0 of the
  themes. There should be no breaking changes though users are
  encouraged to switch to the new format.

This refactoring pertains to the longer-term commitment to make the
customisation options more flexible and easier to maintain, as sketched
out in issue 210 together with Philip Kaludercic:
<https://gitlab.com/protesilaos/modus-themes/-/issues/210>.
2021-07-11 19:09:19 +03:00
Protesilaos Stavrou 31bdb7b768
Update obsolete sample form in the README 2021-07-11 13:26:35 +03:00
Protesilaos Stavrou da7c8c1258
Make modus-themes-headings a list of properties
+ The new style of setting possible combinations per heading level is
  that of a list of properties (symbols) as explained in the variable's
  doc string or in the manual.

+ There is a breaking change where a 'nil' value per heading level is no
  longer acceptable.  That was used to signify the original styles for
  that level.  Now you must use 't' (which also worked before).

+ New stylistic sets are possible, by combining the properties
  'background' and 'monochrome'.  To those one may add 'overline'
  and/or 'no-bold'.

This refactoring pertains to the longer-term commitment to make the
customisation options more flexible and easier to maintain, as outlined
in issue 210 together with Philip Kaludercic:
<https://gitlab.com/protesilaos/modus-themes/-/issues/210>.
2021-07-11 11:37:02 +03:00
Protesilaos Stavrou e3245060b7
Minor update to sample configurations 2021-07-11 08:34:05 +03:00
Protesilaos Stavrou 00beb65433
Update config samples for modus-themes-hl-line
Also check commit c21b9a00fb.
2021-07-10 19:11:48 +03:00