From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: Setting org-todo-keyword-faces Date: Fri, 11 Dec 2020 22:45:34 +0100 Message-ID: References: <20201211213344.GA15255@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13669"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 22:46:33 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 1knqFF-0003RL-1Z for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 22:46:33 +0100 Original-Received: from localhost ([::1]:56356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knqFE-0004Rn-2V for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 16:46:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knqET-0004Qn-1V for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 16:45:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:53755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knqEP-0007v2-NW for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 16:45:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607723134; bh=vOsfkKseW0s9tcOYhZu1VIUYqOOiFJkNkOS2+VYer10=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IasyqTDumNjkKKDXeN2gexmFYqh4hm3hOSjavaxXQbc/6iIl3xLdqhEacrXtrVWN0 7IhpIFsNSMA0Y6ppnmfD7og5OnJUN4rOYRTFNd8o1ErHRck/BYo4tLlUauf2jhyeEd Cql/HblAFfgsJ+ABWRy2lhd9312CHSw2gkbD+MX4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Fri, 11 Dec 2020 22:45:34 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20201211213344.GA15255@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:J1Vis48iplKZkSRCF/zsS0gFN0LJ7oJVZ4dWdkQXPaeHXtkTzxv4wuzCBJPnRoksuBoBy pERpzQaB3D+wuVYHOjKWgfhoNkfxUoZyPl/hLl735oQn7D7NK1d17e6eEwkQbq0HkTdxclKbTYjL GYT7T3sDQ6Ql6v65VzCOj2ZPBYFS6N9iHcgTylVRyEYm8vkB9srsdwiltkvbocwML/8CWx3D0+L0 DnMWzLMUK+A4W4HrQgb+w7Tctrd5vXgJmAHslkVBBOEv1IdFfFekxdZWPDOfsxU5nj51OLDp/eSX A4= X-UI-Out-Filterresults: notjunk:1;V03:K0:63xVAwCV41U=:PCM5hrwff22EjRcvkEOCDt D9TYELf08xU9vK5FuWjrnPcAegcaScc5FajuuJ0mspJR2fDwmML1RaJgg1lwH/dYQi9sj5u3B +zqVqf+ZQMnZevB9XiAMPXUCiSBTloVeZSW/cjLXMZiO4IjKj6Y4lp1CjwLIKIM5/NG2fORD7 PzcmN3T+ICjbfkYXsWz4F75KCN5s4lVw8grIyi7RiH14E04QDwTKnk/4Btf6avD/BZFTDx/VV DLOM95BRYX68n8nNG+1Y0ABwhciYBlK2WviRQGX8EIbKoTW056GOhS5Wb7Npg/aJPiI0NZTT1 boZm15uNSamXsSt4tRNU/ZUU6LV+0T0rEH6zDjKtYx2Zx9R/VBQJUJ9inPRi99i0AZtkXXLso LzqTxj0ZM4duWaEw7MYZ/tBNagAImpAjn/fApF3Pl88WNGQlW3TykN9H43MZnzGE67tSRWTT7 W8a7Y9YHEMXXsPmSP8d24Nv7Vbp6X++a2lOt2+ckpKI8IyuKzNZqJf4GUDA669vBrrzSqMq/Z SA9GL0BNlE+nqgU0ULZXXjNFby7HHykZGrWCvVLZqNggggic2BMC/3/iQThDtsT71Crd0Tq6D j+aRKhT2tgJ5M= Received-SPF: pass client-ip=212.227.15.18; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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:126251 Archived-At: > Sent: Friday, December 11, 2020 at 10:33 PM > From: tomas@tuxteam.de > To: daniela-spit@gmx.it > Cc: "Help Gnu Emacs" > Subject: Re: Setting org-todo-keyword-faces > > 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. > > > > (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. Table is interesting, have not looks at colour settings that way. > Surely you might make the list more compact with a function > or macro roughly doing > > (sty "black" "magenta") -> '(:background "black" :foreground "magenta" > :weight bold) Yes, using a style of sorts. I like it. With two possible sequences, I first have to go through the first, before I get to the second. Is that customary or are there other ways? > ...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 >