Hi there!
I would like Modus Themes to enlarge titles but not headings in the Org
mode. I tried to set 'modus-themes-headings' but it always makes both
the titles and the headings larger. Any ideas?
(I think enlarging just the titles makes for a natural default. Unlike
the headings, which in the Org mode play too many roles, the titles have
exactly one, well-defined purpose, namely to give the document a title.)
P.S. I used 'describe-char' to look at the faces and found that Org uses
a dedicated face, called 'org-document-title', for the titles.
Thank you!
Rudy
--
"The introduction of suitable abstractions is our only mental aid to
organize and master complexity."
-- Edsger Wybe Dijkstra, 1930-2002
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
> From: Rudolf Adamkovič <salutis@me.com>> Date: Thu, 07 Jul 2022 12:07:06 +0200>> Hi there!
Hello Rudolf!
> I would like Modus Themes to enlarge titles but not headings in the Org> mode. I tried to set 'modus-themes-headings' but it always makes both> the titles and the headings larger. Any ideas?
Good point! I think our two options are:
1. Update the 'modus-themes-headings' to accept a 'title' entry in
addition to the numbered headings.
2. Document how the user can change the 'org-document-title' face
locally.
For case 1 the title will accept all the styles we already provide. I
think they are all suitable, perhaps with the exception of the overline.
Case 2 may be difficult for some users. It also is harder to discover,
as it will be included somewhere in the manual's "do-it-yourself"
sections.
What do you think?
All the best,
Prot
--
Protesilaos Stavrou
https://protesilaos.com
> From: Protesilaos Stavrou <info@protesilaos.com>> Date: Thu, 07 Jul 2022 13:31:01 +0300>>> From: Rudolf Adamkovič <salutis@me.com>>> Date: Thu, 07 Jul 2022 12:07:06 +0200>>>> Hi there!>> Hello Rudolf!>>> I would like Modus Themes to enlarge titles but not headings in the Org>> mode. I tried to set 'modus-themes-headings' but it always makes both>> the titles and the headings larger. Any ideas?>> Good point! I think our two options are:>> 1. Update the 'modus-themes-headings' to accept a 'title' entry in> addition to the numbered headings.>> 2. Document how the user can change the 'org-document-title' face> locally.
Hello again!
I decided to go with option 1. This is the commit I just pushed.
commit 2860a94f78154dfdd0b2d01bdf0af7992195f34c
Author: Protesilaos Stavrou <info@protesilaos.com>
Date: Fri Jul 8 17:08:24 2022 +0300
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.
doc/modus-themes.info | 167 ++++++++++++++++++++++++++------------------------
doc/modus-themes.org | 21 ++++---
modus-themes.el | 33 +++++++---
3 files changed, 126 insertions(+), 95 deletions(-)
Please give it a try. Thank you!
Prot
--
Protesilaos Stavrou
https://protesilaos.com
Protesilaos Stavrou <info@protesilaos.com> writes:
> Please give it a try. Thank you!
And it works beautifully! Thank you, Prot.
Rudy
--
"Programming reliably -- must be an activity of an undeniably
mathematical nature […] You see, mathematics is about thinking, and
doing mathematics is always trying to think as well as possible."
-- Edsger W. Dijkstra, 1981
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
> From: Rudolf Adamkovič <salutis@me.com>> Date: Fri, 08 Jul 2022 18:49:13 +0200>> And it works beautifully! Thank you, Prot.
You are welcome!
--
Protesilaos Stavrou
https://protesilaos.com