From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: specify different agenda item colors for different custom agenda views Date: Wed, 03 Jan 2018 01:30:18 -0600 Message-ID: <87bmibv1px.fsf@alphapapa.net> References: <871sj8o616.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWdVY-0004YM-1A for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 02:30:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWdVT-0007rK-KM for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 02:30:40 -0500 Received: from [195.159.176.226] (port=51776 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWdVT-0007qY-Df for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 02:30:35 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eWdTK-0007IS-Rn for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 08:28:22 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Rainer Stengele writes: > >> These posts which stay unanswered - either they are too stupid or too >> complicated?! > > AFAIC, questions about the Agenda tend to belong to the second > category. Indeed! :) >> Anybody an idea, a hint? > > It may help to know what you have tried so far. For example, how is your > block configuration, including the settings part (see > `org-agenda-custom-commands' docstring)? > > Note that it might not be possible to achieve what you want. Probably the way to do it would be to wrap the agenda code which operates on certain files, and let-bind the org-agenda-done face around that code depending on which file it is. That would probably require copying the function in question and overriding it with advice. Certainly doable (on first glance, anyway), but not easy for someone unfamiliar with elisp or the agenda code. I would guess that a more general solution, which could bind certain variables to certain values depending on which file the agenda is being constructed from, could be useful in other ways as well. It might be possible to integrate this with org-agenda-custom-commands, or in a customizeable variable mapping files to lists of variables, to make it fairly straightforward to use.