From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SFrRBKkFVF+pDgAA0tVLHw (envelope-from ) for ; Sat, 05 Sep 2020 21:39:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +D3iAKkFVF8GWgAA1q6Kng (envelope-from ) for ; Sat, 05 Sep 2020 21:39:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3861E9403EE for ; Sat, 5 Sep 2020 21:39:52 +0000 (UTC) Received: from localhost ([::1]:45624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEfuX-0000um-R2 for larch@yhetil.org; Sat, 05 Sep 2020 17:39:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEfuB-0000uR-5E for emacs-orgmode@gnu.org; Sat, 05 Sep 2020 17:39:27 -0400 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]:33072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEfu9-0000yE-1z for emacs-orgmode@gnu.org; Sat, 05 Sep 2020 17:39:26 -0400 Received: by mail-ed1-x544.google.com with SMTP id g4so9246340edk.0 for ; Sat, 05 Sep 2020 14:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZytT1zaCYW7mgESKqYo+Yz+R/sKuZslVImThi7b2gQQ=; b=w9/IClVG1FD0GPazh/5P+oJhe0N3eoD/JOpfcuFeu8Gmt1MOiXGDtCMSN5s5Nbaa31 qI4+DOMVbUPlc6H4FPUff+vwWvdI0QSvuDIi9uYqDsScKMxUnk6VZJ7cvyBoBvdkcJJK 5fcibzKEoUJSvtQKHlitWqGbTu/HADS9pDdisxHmxJEZ25J+zz7e91cO2pLmIKxPyQT+ I/C/O0+L04hxmVcCdw/CqB6CQ9wKux9i8Ft1tYusiDkh+v33qQP1IqGzppsHXuyI8ihu PFtJNOgkca7m4449j98LAphjaDH+JAmiD+dIoJA3jc5SmO2hVBFyeXwqfwXrcjTywwH6 OXXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZytT1zaCYW7mgESKqYo+Yz+R/sKuZslVImThi7b2gQQ=; b=EVuhZ2RDdKnGCKqNKOeUIM+olfz9WkXvNJNVy2HDMSfqebkMyjymNWjNzZAKVtPs3F pAzmBbWfF7B+U2RRZcYvBdub5YNeJSyYeI93f9rDNBXDMlmWhdXhrl+U4qrAtcWqb5xZ ScJea8wATIU4lYx6HH43WpxeDUfSig5G17800geqRRnMmGJJz0n566PB9qLhwXZw5Fve TybNyVVG3LnUtfLTWI+AksvQNxSuDvyPXJqLocAq/BEF0i7SWVSGBx1mpi42+2Nwqy8h I2S84OqiPtCb64K/cF+QTIWwA5TY1WwaStyyfynpWVEE/JuqoP0P2EQK20zdJWbIrva0 8Tqg== X-Gm-Message-State: AOAM532GgXKUrKTY4EmjNX0Y3Y6naI4nzot7kM5pbY0z7aadl+n/h5Sw yMOqZigzhgzkvDSB9Pb8m7W7A1rZwS5cwP2vZyozAg== X-Google-Smtp-Source: ABdhPJzNdwMIvW9LaZ47w1b/kMypQVizOa7YOwJ/1eZaoCI1rvMT72QfOp//qnJ9suJOWNgL7JK3QSADJdjS2sSMMHM= X-Received: by 2002:a05:6402:1641:: with SMTP id s1mr15605915edx.66.1599341961979; Sat, 05 Sep 2020 14:39:21 -0700 (PDT) MIME-Version: 1.0 References: <878sii4yj7.fsf@protesilaos.com> In-Reply-To: <878sii4yj7.fsf@protesilaos.com> From: Diego Zamboni Date: Sat, 5 Sep 2020 23:39:11 +0200 Message-ID: Subject: Re: Adaptive Org faces in headings? To: Protesilaos Stavrou Content-Type: multipart/alternative; boundary="00000000000084bd2405ae97d135" Received-SPF: none client-ip=2a00:1450:4864:20::544; envelope-from=diego@zzamboni.org; helo=mail-ed1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=w9/IClVG; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: UqhEpaL1Upto --00000000000084bd2405ae97d135 Content-Type: text/plain; charset="UTF-8" Hi Protesilaos, I had seen the same in my setup. I recently started using Doom Emacs ( https://github.com/hlissner/doom-emacs/) and was pleasantly surprised to discover that todo and tag faces scale according to the headline in which they are. I don't know precisely how this is done, but there are some hints here, you might use it as a starting point: https://github.com/hlissner/doom-emacs/blob/develop/modules/lang/org/config.el#L146-L175 (tangentially: I am very happy with Doom Emacs. After 30+ years of handcrafting my Emacs config, I decided to give it a try and I can highly recommend it). --Diego On Sun, Apr 26, 2020 at 9:01 AM Protesilaos Stavrou wrote: > Dear all, > > I have noticed that Org faces that combine with headings do not adapt to > their context. This applies to keywords, priority cookies, links, and > possibly other elements as well. > > For example, a "todo" keyword (`org-todo' face) will not scale in size > to match that of the heading level (`org-level-N' face) if the latter > uses a `:height' property. Same principle for keywords not inheriting > the heading's background, overline, etc. > > My expectation is to allow `org-level-N' to pass its attributes to any > element on the same line, unless that element has conflicting face > attributes of its own. So, in my example, the heading could pass its > height to the "todo" keyword when the `org-todo' face does not define a > `:height' of its own. Otherwise it would refrain from overriding that > attribute. > > Does the community know of a solution to this issue? > > I am running: > > * Org mode version 9.3. > > * GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, > cairo version 1.17.3) of 2020-04-20. > > Best regards, > Protesilaos > > > -- > Protesilaos Stavrou > protesilaos.com > > --00000000000084bd2405ae97d135 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Protesilaos,

I had = seen the same in my setup. I recently started using Doom Emacs (https://github.c= om/hlissner/doom-emacs/) and was pleasantly=C2=A0surprised to discover = that todo and tag faces scale according to the headline in which they are. = I don't know precisely how this is done, but there are some hints here,= you might use it as a starting=C2=A0point:=C2=A0https://github.com/hlissner/doom-emacs/blob/develop/modul= es/lang/org/config.el#L146-L175

(tangentially:= I am very happy with Doom Emacs. After 30+ years of handcrafting my Emacs = config, I decided to give it a try and I can highly recommend it).

--Diego


On Sun, Apr 26, 2020 at 9:01 AM Protesilaos Stavrou <info@protesilaos.com> wrote:
Dear all,

I have noticed that Org faces that combine with headings do not adapt to their context.=C2=A0 This applies to keywords, priority cookies, links, and=
possibly other elements as well.

For example, a "todo" keyword (`org-todo' face) will not scal= e in size
to match that of the heading level (`org-level-N' face) if the latter uses a `:height' property.=C2=A0 Same principle for keywords not inheri= ting
the heading's background, overline, etc.

My expectation is to allow `org-level-N' to pass its attributes to any<= br> element on the same line, unless that element has conflicting face
attributes of its own.=C2=A0 So, in my example, the heading could pass its<= br> height to the "todo" keyword when the `org-todo' face does no= t define a
`:height' of its own.=C2=A0 Otherwise it would refrain from overriding = that
attribute.

Does the community know of a solution to this issue?

I am running:

* Org mode version 9.3.

* GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, =C2=A0 cairo version 1.17.3) of 2020-04-20.

Best regards,
Protesilaos


--
Protesilaos Stavrou
pro= tesilaos.com

--00000000000084bd2405ae97d135--