From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Setting org-todo-keyword-faces Date: Fri, 11 Dec 2020 22:33:44 +0100 Message-ID: <20201211213344.GA15255@tuxteam.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2819"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Help Gnu Emacs To: daniela-spit@gmx.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 22:34:35 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knq3e-0000dh-K9 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 22:34:34 +0100 Original-Received: from localhost ([::1]:48882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knq3d-0000N0-NA for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 16:34:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knq2x-0000Mj-Jo for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 16:33:51 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:47413) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1knq2t-0004NJ-1j for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 16:33:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=DOfQVvX6SfPjfslpZcKuVreFKLUS8V9+oefZ5cCPF28=; b=SY/zUNJOzqTzsg6D2G47s2ohUEPWy1ZqYgouRU3SYv36Hs+PRHBsB0xckWo7r22ROMQIhF18opefRa52IEzp+VSGh7ZtZh0LULKS45YCRthH2Q56NRC2W7Z9iS9ZL7nxWaBK8+3urSd0GUR3ATkI/fRG2YNh3wtXqx53zssN1x5zmQ3Xlyj+zkmZ9wD4tVXg8UAfen2mnrkTsVx8SvhyWClmZRao9LRMQh59YQoQwa3XEYcSKOV07IuK4JULXu4BC/ll3lYL9URdxTmRDFkDOH9amgXZNL45w7Hjz6qFc454ylou8xiSolzpQccUx9glzzZ6sN2WLofoSo2r3m1i9A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1knq2q-0004OP-4v; Fri, 11 Dec 2020 22:33:44 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126249 Archived-At: --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 11, 2020 at 06:10:03PM +0100, daniela-spit@gmx.it wrote: > I would be grateful to know how I could make the following setup > more organised. >=20 > (setq org-todo-keyword-faces > '(("TODO" . (:background "black" :foreground "red" > :weight bold)) > ("STARTED" . (:background "black" :foreground "magenta" > :weight bold)) > ("WAITING" . (:background "magenta" :foreground "black" > :weight bold)) > ("FINALISE" . (:background "magenta" :foreground "black" > :weight bold)) > ("DONE" . (:background "orange" :foreground "black" > :weight bold)) > ("CRITICAL" . (:background "blak" :foreground "red" > :weight bold)) > ("CR-STARTED" . (:background "red" :foreground "black" > :weight bold)) > ("CR-WAITING" . (:background "red" :foreground "black" > :weight bold)) > ("CR-FINALISE" . (:background "red" :foreground "black" > :weight bold)) > ("CR-DONE" . (:background "orange" :foreground "black" Hm. For me it's tough to understand what you are after. I get from your other mail that there are two sequences in there. Their styles aren't "parallel" though. You want more concise code? The lowest hanging fruit seems to be the repeated :weight bold, then. To try to get a hold on possible symmetries, I rearranged things like so (rows are same background, columns same foreground): | bg \ fg | red | magenta | black | |---------+----------+---------+-------------| | red | | | CR-STARTED | | | | | CR-WAITING | | | | | CR-FINALISE | |---------+----------+---------+-------------| | magenta | | | WAITING | | | | | FINALISE | |---------+----------+---------+-------------| | black | TODO | STARTED | | | | CRITICAL | | | |---------+----------+---------+-------------| | orange | | | DONE | | | | | CR-DONE | Of the possible 12 combinations, only 5 are used (the diagonal doesn't make much sense, for obvious reasons). Perhaps name those five and give them faces? This would depend on whether you're planning to fill that table more densely or not. Surely you might make the list more compact with a function or macro roughly doing (sty "black" "magenta") -> '(:background "black" :foreground "magenta" :weight bold) =2E..but I don't know whether you're after this, either. In a nutshell, I'm not sure about what you're up to. Cheers - t --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/T5bgACgkQBcgs9XrR2kaFGgCfaM1wNIKkgMwNuTITmrMNaZir FCcAmwejBUIz3MB9a9WUnMyu+gemJEzM =ByeS -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--