From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giacomo M Subject: Replace default category displayed in org-agenda with directory name Date: Thu, 28 Jun 2018 19:43:15 -0400 Message-ID: <228dfed6-27a1-f7ab-cb5b-bd4ff1454629@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYgZM-00070O-OU for emacs-orgmode@gnu.org; Thu, 28 Jun 2018 19:43:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYgZL-00089l-UT for emacs-orgmode@gnu.org; Thu, 28 Jun 2018 19:43:20 -0400 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:37276) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYgZL-00088j-PR for emacs-orgmode@gnu.org; Thu, 28 Jun 2018 19:43:19 -0400 Received: by mail-qt0-x235.google.com with SMTP id a18-v6so6385959qtj.4 for ; Thu, 28 Jun 2018 16:43:19 -0700 (PDT) Received: from ?IPv6:2601:98a:4002:aff0:86ba:6a9:e769:1456? ([2601:98a:4002:aff0:86ba:6a9:e769:1456]) by smtp.gmail.com with ESMTPSA id l73-v6sm10177702qkl.78.2018.06.28.16.43.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 16:43:17 -0700 (PDT) Content-Language: en-US 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 Dear helpful list, I'm experimenting with an org-agenda setup where I have a directory for each project, and a README.org with the project TODOs in each directory. I'm using the elisp below: #+BEGIN_SRC: emacs-lisp   (setq org-agenda-file-regexp "\\`README\\.org\\'")   (setq org-agenda-files projectile-known-projects) #+END_SRC where I feed the list of directories of projects to org-agenda from projectile. My question is: how can I rename the category of the TODOs listed in the agenda from "README.org" to the directory name containing the file of the TODOs (which in my setup would also identify the parent project)? Thanks, Giacomo