From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kLxTD1J4R2H/KAAAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 19:50:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cq4BC1J4R2GKbwAA1q6Kng (envelope-from ) for ; Sun, 19 Sep 2021 17:50:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 97BB613E23 for ; Sun, 19 Sep 2021 19:50:09 +0200 (CEST) Received: from localhost ([::1]:57354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mS0x6-0007IQ-1P for larch@yhetil.org; Sun, 19 Sep 2021 13:50:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mS0tg-00066f-6M for emacs-orgmode@gnu.org; Sun, 19 Sep 2021 13:46:36 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:42856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mS0tc-0003M8-BL for emacs-orgmode@gnu.org; Sun, 19 Sep 2021 13:46:34 -0400 Received: by mail-pj1-x1031.google.com with SMTP id p12-20020a17090adf8c00b0019c959bc795so5407431pjv.1 for ; Sun, 19 Sep 2021 10:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version; bh=vdtlhDr7RiE8lskrQd8skPWnE7AEuzVdiMjshzRV6N8=; b=kYEIxpVU8tl0r7gPV+maxKQfWQzIj42OixbGHnGw+ltcoUnRpfqzHiFP1tfX3kusqN 3hUrPV8Vt03D9ovjO0ouU3sgEy1I9MbDxAlvMBlYDCKAJJgA/nuMZsvSMqJJUNn01rvD ZRoSMos1qMg5XWNR64vweoBgXg24DcY4eYxmfSO3pgqX974Kr+Q5SGbo9zaRGyAIIY4R gv0zNVnYY/rZ+TaRSaP6al5kBqyKX4/l9lyUXclZhFztPSjFUP2yUOAdaiPoaZUaw/Fd B9iJIvJIgSbzVKZeJNhS7WH/D8i5QvAZ3UEXWRDDnOk60lxZXzXLOSnIs5k5ep8MtFiP p09Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=vdtlhDr7RiE8lskrQd8skPWnE7AEuzVdiMjshzRV6N8=; b=7fDApoH82yjwYlV8cY7ouq3/piGiL5Cf9f39AHuM4cS8ZDI+TA7DKSebPAGprI7hr9 TleEaLhYd0he6LSeUPRwzNNsqolrXDpVLrlHYXOzgb8ppwduB3L7/d8FmlYjQ7GtSc02 fg75Ty0yrvPHdfMkQcc3KqrVhRjnHeBNYbTihOYvl8A9FE7mUOESrJWY/FhEZwJbq38P BuiWKFByv9bW58Z1EJvUs287ZoI9r7JdNxf7TucoQTwuVyQPxNZXE9SRCr47Vk1xrj/f RQjg+cEWJyfCeTSMToU1AePOopaFDJ9YkE9ZWxuNnJUbF/ZL4p/rTxYGqjG5pyG/zn0z uPRQ== X-Gm-Message-State: AOAM5339z11n2ecSImBuv7MlwZK8mMBZ/vdTqh2C/9hkm2qonkgVTN8a aqKO6WEs+UMx3WTThc5lfhMxlzixhAR6HA== X-Google-Smtp-Source: ABdhPJyCZXY/TQC30syyMHgQQKAIHiHVaJZpYRfrifynV45x/HqP9lt9IT8mXl+Z8QCgWkL2EnprZg== X-Received: by 2002:a17:90b:46cd:: with SMTP id jx13mr24562669pjb.122.1632073590083; Sun, 19 Sep 2021 10:46:30 -0700 (PDT) Received: from ryzen3950 (c-73-170-21-48.hsd1.ca.comcast.net. [73.170.21.48]) by smtp.gmail.com with ESMTPSA id k14sm8678293pgg.92.2021.09.19.10.46.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 10:46:29 -0700 (PDT) From: Matt Huszagh To: "emacs-orgmode@gnu.org" Cc: Subject: Customizing the agenda item format Date: Sun, 19 Sep 2021 10:46:24 -0700 Message-ID: <87a6k8sbkf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=huszaghmatt@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632073809; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vdtlhDr7RiE8lskrQd8skPWnE7AEuzVdiMjshzRV6N8=; b=CXHvt8m08FrZjatAo7xy2pAiuygu3bVItY7f/wCwaiFXWqRYGP6M/+wbQJHsZJxx3Ta3Pb f1OlXWNxQs8ol2OKVaYPkNIvZ04w0NQ0OVFtDFosPXPO4Ze6GM/jS06kX9pCLT2XvNfEip HUk4i7p7sdj+6M2O8UF2BVrWZuXf0ncOzF/wKcq0hC7zpFXxyPf2ZzQewWlVeP1DumE9qA D+k96VqWtrG4bFDk1aBpPLvicKii9QzSBP5EqXqI5mN0YQW76VMyFgKY5g2W8adnK4AOK0 WtpYXwVVzkABTdZuRyvw0gB/JXP5bvxNnIE0XQmDVHDkqivP1PQn7qB8LbYXCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632073809; a=rsa-sha256; cv=none; b=jFs4rKc6jm8HL4s0iI3u6PJ1R314KtYnnc+up3WCZCURTHIspMTvaDGVWhVOuQ8wfXoqRF vOfM1IQmy2meb0+zJvF2B+COCVnw9kQTto6RwUXI+3DuJiWz3E7i/jaYuSNDaZTtWficIk RIls2BAxMKL+hWW7dFmEo5ho+b+JtTol+MJDKBBYoCdmTIlMYAyo46WiVF6+wyFjg9HZoJ 32YsnwMQdKB5K1KkwCbl9EtzfwyWLLBlmTrNmTsWNfmgF7tEtMvFQkNwUbLBtck8MT354Z rG8ZaAACVgRucurECFwWUVmshbaRo5HgVtVcGgoP/uP52C9wg2KSzbPGDonpUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kYEIxpVU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kYEIxpVU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 97BB613E23 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: LLzbkZdoHaG/ I'm attempting to create a custom agenda, but having a bit of trouble getting this to work in the way that I want. In particular, I'd like to be able to specify the display format for each item. Here's what I've got so far: (setq org-agenda-custom-commands '(("c" "Custom agenda view" ((tags-todo "hardware|electronics|mechanical_engineering" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo '("HOLD"))) (org-agenda-overriding-header "Hardware") (org-agenda-prefix-format " ") (org-agenda-hide-tags-regexp ".*"))))))) This gives me something like TODO some headline title This is close to what I want. But, all my items are TODO so I don't want to display this. In other words, I just want some headline title Then, I'd also like to display the title of the page, right-justified, in parentheses. So, some headline title (some page title) Another display I'm considering is to present the full outline path, rather than just the title, so something like some/headline/path (some page title) I can provide functions to get this information, but I don't know how to present it in the agenda. Are displays like this possible? `org-agenda-prefix-format' gives a lot of flexibility for the prefix format, but I wasn't able to find something similar for the actual item. The "Presentation and Sorting" part of the manual also didn't give me any leads. Thanks Matt