Commit graph

1206 commits

Author SHA1 Message Date
Protesilaos Stavrou 467aab7137
Bump to 2.4.1 2022-06-01 13:45:45 +03:00
Protesilaos Stavrou 7401a62378
Make modus-themes-report-bug interactive 2022-06-01 13:38:47 +03:00
Protesilaos Stavrou 191f2a6856
Update to version 2.4.0 2022-06-01 13:05:51 +03:00
Protesilaos Stavrou 7be6ff01d0
Explain "version" in 'modus-themes--version' 2022-06-01 10:06:29 +03:00
Protesilaos Stavrou 1901552a97
Clarify note about git-gutter tweaks in Doom Emacs 2022-06-01 09:53:56 +03:00
Protesilaos Stavrou 9958ecd45a
Remove accidentally added face 2022-05-27 17:25:08 +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 cf4f308ad1
Add minor tweak for commit 11c701a 2022-05-23 09:14:53 +03:00
Protesilaos Stavrou 11c701a9ac
Make deuteranopia combine with modus-themes-diffs
Before, when modus-themes-deuteranopia was non-nil it would affect diffs
by forcibly applying the default style of modus-themes-diffs with the
sole difference of replacing greens with blues.

Now all these combinations work as intended:

    (setq modus-themes-deuteranopia t
          modus-themes-diffs 'desaturated) ; nil, 'desaturated, 'bg-only

Thanks to Kevin Le Gouguec for the feedback:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C878rqt4jhm.fsf@gmail.com%3E>.
2022-05-23 08:44:17 +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 9f1ad6e731
Comment on 'default' fallback for 'line-number' 2022-05-20 06:45:11 +03:00
Manuel Giraud aadf1788b7
Tweak how 'org-date' uses optional fixed-pitch
No need to use a condition when 'modus-themes-fixed-pitch' does that
already.

This is relevant when 'modus-themes-mixed-fonts' is non-nil.
2022-05-20 06:41:32 +03:00
Manuel Giraud 04a70d256e
Make key bindings use optional fixed-pitch
This applies when 'modus-themes-mixed-fonts' is non-nil.
2022-05-20 06:38:58 +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 0494b9bfa0
Recompile manual 2022-05-12 13:07:53 +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 b1f94b20a9
Revert "Disable byte compilation"
This reverts commit 3d6221e284.  Upon
further inspection, the issue is specific to Emacs 29.  I tried to build
the package with Emacs 27, 28, 29, and only the latter produces the
error.
2022-05-12 11:57:40 +03:00
Protesilaos Stavrou 3d6221e284
Disable byte compilation
Commit f067d2e explains at length the rationale for wrapping the
reification of the themes in 'eval-and-compile'.  While that appears to
solve the problem documented therein, it creates a new one: when we try
to byte compile a theme, we get:

    Error: Lisp nesting exceeds ‘max-lisp-eval-depth’

I think byte compilation is nice to have, but it keeps giving us
problems.  I am thus disabling it until further notice.

[ Themes shipped with Emacs are not byte compiled (includes
  modus-operandi and modus-vivendi).  I have seen third-party themes do
  the same, such as Bozhidar Batsov's zenburn. ]

Thanks to Omar Antolín Camarena (@oantolin) for reporting the
aforementioned error.
2022-05-11 19:18:18 +03:00
Protesilaos Stavrou d00946e80b
Tweak format of internal function 2022-05-10 17:32:39 +03:00
Protesilaos Stavrou 6117ec171b
Add note in manual about PHP multiline comments 2022-05-10 06:32:44 +03:00
Protesilaos Stavrou 4da9042dbc
Simplify variants of font-lock-warning-face 2022-05-08 12:09:44 +03:00
Protesilaos Stavrou 5cd7f47e6e
Refine some colour combinations for "alt syntax"
These are relevant when value of the user option 'modus-themes-syntax'
includes the symbol 'alt-syntax' (and combinations thereof).
2022-05-06 09:16:25 +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 842c672a81
Use correct order of inheritance for markup faces
This fixes a problem where not all typographic attributes where applied
to the faces when 'modus-themes-mixed-fonts' was non-nil and the value
of 'modus-themes-markup' included '(bold italic)'.
2022-05-05 10:37:34 +03:00
Protesilaos Stavrou ee0670f85b
Recompile Info manual 2022-05-04 07:38:45 +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 493c8e8cc6
Make fountain comments same as other comments
Avoids the creation of inconsistencies, such as when the user has the
following:

    (setq modus-themes-syntax '(yellow-comments))
2022-05-02 08:13:05 +03:00
Protesilaos Stavrou 40b5b7497b
Make git commit/rebase comments inherit font-lock
This makes it possible to customise 'font-lock-comment-face' and have
the changes apply to those faces as well.  Such a customisation can, for
example, involve the change of the font family or the addition of a
background colour.  We want the whole comment block, including those
special keywords from Git, to look consistent.

This change also makes git-{commit,rebase}-comment-heading attain the
foreground colour of comments, instead of the default one (black or
white).  It makes it look part of the comment block.
2022-05-02 08:05:28 +03:00
Protesilaos Stavrou a42c171038
Stop using 'inverse-video' in powerline
We now apply the colours directly.  The reason is that 'inverse-video'
makes it tricky to override the face as it swaps the foreground with the
background.  That behaviour is only needed in special cases: powerline
is not one of them.

Thanks to Thibaut Verron for the feedback in issue 305 over at the
GitLab mirror: <https://gitlab.com/protesilaos/modus-themes/-/issues/305>.
2022-04-27 17:14:20 +03:00
Protesilaos Stavrou 29b8a11504
Tweak foreground of calibredb library name
Thanks to Ivan Popovych for the feedback:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87czhcdk8b.fsf%40protesilaos.com%3E#%3C87ee1my87s.fsf@gmail.com%3E>.
2022-04-25 06:33:50 +03:00
Protesilaos Stavrou f2445a43d8
Cover new calibredb faces
See: <https://github.com/chenyanming/calibredb.el/pull/60>.
2022-04-23 06:40:45 +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
Protesilaos Stavrou af3b52ac79
Remove supported packages from the Commentary
That sort of information belongs to the manual.
2022-04-22 08:29:21 +03:00
Protesilaos Stavrou e8f1b89974
Clarify a statement in the manual 2022-04-21 13:21:08 +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 5738d159d7
Review Avy by using bespoke colours
Please read the analysis:
<https://protesilaos.com/codelog/2022-04-20-modus-themes-case-study-avy/>.

Thanks to Daniel Mendler and Damien Cassou for their feedback:

* <https://lists.sr.ht/~protesilaos/modus-themes/%3C83f18e2e-d726-0248-72f5-95e896cbcf4c%40daniel-mendler.de%3E>
* <https://lists.sr.ht/~protesilaos/modus-themes/%3C87czhgt5nm.fsf%40cassou.me%3E>
2022-04-20 11:54:29 +03:00
Protesilaos Stavrou 0751e31230
Support face rotation in highlight-changes-mode
This is done with the 'highlight-changes-rotate-faces' command when
'highlight-changes-mode' is enabled (the mode is built into Emacs).

Thanks to Philip Kaludercic for the feedback on the mailing list:
https://lists.sr.ht/~protesilaos/modus-themes/<878rs14il4.fsf@posteo.net>
2022-04-19 11:50:32 +03:00
Protesilaos Stavrou 9928e20172
Make vertico-quick blue consistent with avy's
Read the message in commit 872b717.
2022-04-18 19:49:07 +03:00
Protesilaos Stavrou 872b71772e
Make the avy "blue" colour more readable
Relevant quote and my explanation:

    > it feels to me that the colors used for avy aren't easy to read,
    > especially the black foreground on blue background. I'm using
    > modus-themes because I have a problem seeing contrast with an overall
    > bad vision and I'm usually very happy with the colors you pick: I'm
    > wondering why this is different with these colors.

    I see what you mean.  Here we have a case where the 7:1 ratio is not
    consistent with the legibility we perceive.  The blue and the black have
    a 10:1 contrast, but it still feels inadequate:

        (modus-themes-contrast "#77baff" "#000000")
        ;; => 10.251949912839315

    My hypothesis is that this is because of colour perception: blue is the
    darkest colour so blue and black feels like "dark and dark".

I have had at least one more case where the modus-themes-intense-blue
felt hard to read while using modus-operandi.  I had already reviewed
the blue-intense-bg, but I plan to do so again.  Though I also need to
analyse how it is used.  For the time being, I feel this problem is
specific to Avy, due to the visuals of its interaction model.

Any small surface area with an intense background that contains a single
character can be harder to read, as the eye may blend everything into a
solid block (especially for black on blue).  When the area is larger,
the eye no longer blends the foreground and the background, making
everything appear at its nominal contrast ratio, which in our particular
case is > 10:1 (i.e. very high).

Thanks to Damien Cassou for the feedback:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87czhgt5nm.fsf%40cassou.me%3E>.
2022-04-18 19:31:38 +03:00
Protesilaos Stavrou 2329803b86
Add modus-themes-report-bug, modus-themes-version
The 'modus-themes-version' should be helpful for those who follow the
Git repo and need to report a bug.

The 'modus-themes-report-bug' might help users find the email address of
the mailing list and get started there.
2022-04-17 10:59:02 +03:00
Protesilaos Stavrou 7f9ee33e8f
Remove outdated reference to variable 2022-04-15 05:36:05 +03:00
Daniel Mendler 15fe9503c3
Do not require seq at runtime 2022-04-14 12:22:23 +03:00
Protesilaos Stavrou dd2b51a76f
Note that egerit is indirectly supported
This is a new package by Niklas Eklund which provides an Emacs interface
to Gerrit: <https://gitlab.com/niklaseklund/egerrit>.
2022-04-13 21:44:46 +03:00
Protesilaos Stavrou df59b4ca8d
Stop using a timestamp
It can lead to situations where there is a mismatch between the latest
change and the recorded time.  It also introduces a barrier to entry for
contributors, as they need to set up 'time-stamp.el'.
2022-04-11 08:12:50 +03:00