From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Mark vacation days Date: Sun, 27 Jan 2019 12:35:58 -0800 Message-ID: <87y375g7o1.fsf@geus3064linuxwsm.geus.dk> References: <871s4xhpe0.fsf@geus3064linuxwsm.geus.dk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnr9t-0004LM-MJ for emacs-orgmode@gnu.org; Sun, 27 Jan 2019 15:36:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnr9s-0001Wt-UP for emacs-orgmode@gnu.org; Sun, 27 Jan 2019 15:36:01 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:33634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnr9s-0001WQ-Hl for emacs-orgmode@gnu.org; Sun, 27 Jan 2019 15:36:00 -0500 Received: by mail-pf1-x435.google.com with SMTP id c123so7073318pfb.0 for ; Sun, 27 Jan 2019 12:36:00 -0800 (PST) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: JRSS Cc: "emacs-orgmode@gnu.org" Hi, On 2019-01-27 at 12:20 -0800, JRSS wrote... > This is a bit over my head still. I'm trying to wrap my head around it. > > I see what it does (colors day-of-the-week 1 and day-of-the-week-3, > which are Monday and Wednesday, red) but not sure how to tie it to a > category (so say, category "vacation" would be red). > > Once I have the function do that, I can go in and change it so that > different categories will be different colors. It's a bit over my head for this use case too. Sorry. When I saw it I thought the use case was a list of holidays, which is easier to implement. You could maintain this list in an easy-to-access format as a variable near where you implement this function. A dynamic list based on tagged Org items is certainly more complicated. -k.