From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Subject: org-todo-keyword-faces in agenda Date: Wed, 12 Apr 2017 11:28:55 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyL9H-0005uX-GM for emacs-orgmode@gnu.org; Wed, 12 Apr 2017 12:29:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyL9G-0003Sy-3a for emacs-orgmode@gnu.org; Wed, 12 Apr 2017 12:29:39 -0400 Received: from mail-yw0-x230.google.com ([2607:f8b0:4002:c05::230]:34134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyL9F-0003SX-V5 for emacs-orgmode@gnu.org; Wed, 12 Apr 2017 12:29:38 -0400 Received: by mail-yw0-x230.google.com with SMTP id k13so14413071ywk.1 for ; Wed, 12 Apr 2017 09:29:36 -0700 (PDT) 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 Greetings! I've got a file-local org-todo-keyword-faces set in an org-mode file. When I use agenda on this org file, my keyword faces from the org-mode buffer don't carry over to the agenda buffer. I assume this is because the local org-todo-keyword-faces value is not set in the agenda buffer. If my assumption is correct, does anyone have an idea of how I could accomplish getting my file-local org-todo-keyword-faces value into agenda buffers? I don't want to set org-todo-keyword-faces globally since the values there only apply to a single org-mode file. For a test case, drop these four lines in an org-mode file: * TODO Test # Local Variables: # org-todo-keyword-faces: (("TODO" . "blue")) # End: Load up that file, accept the "unsafe" local value, then M-x org-agenda RET < t (all to-dos only from the current org-mode buffer). The TODO in the agenda buffer is the default red, rather than the blue I set in the org file. I've thought of two *possibilities* that I haven't really explored yet: 1. Agenda could copy the keyword from the contributing org-mode buffer with its face text property intact (but I can imagine that this would interfere with other features, such as existing customizations in org-agenda) 2. Some hook function that figures out which org-mode buffer(s) contributed to an agenda view and copies/merges org-todo-keyword-faces values into the agenda buffer Thanks! Dale