From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QC7KEnRfZ1/AVwAA0tVLHw (envelope-from ) for ; Sun, 20 Sep 2020 13:56:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eOPlDnRfZ1/yEQAAB5/wlQ (envelope-from ) for ; Sun, 20 Sep 2020 13:56:04 +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 BC671940224 for ; Sun, 20 Sep 2020 13:56:03 +0000 (UTC) Received: from localhost ([::1]:56486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJzow-0006qD-6b for larch@yhetil.org; Sun, 20 Sep 2020 09:56:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJznn-0006oe-Rk for emacs-orgmode@gnu.org; Sun, 20 Sep 2020 09:54:51 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:32855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJznl-00069H-TF for emacs-orgmode@gnu.org; Sun, 20 Sep 2020 09:54:51 -0400 Received: by mail-ed1-x52a.google.com with SMTP id g4so10415065edk.0 for ; Sun, 20 Sep 2020 06:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3x4zormwoK+Di9k+Nffx/KbIMqtdqqcz8872QniE2Tc=; b=LGF9s36Kq9Gff9KqGkdhWBd5i1ETNARFZD9ImENkM/XLJYWyZwQNuJzojrlVtDbPUU pfZ8gh23c8TJCIOY8YtbAOSyBzdNmn66WCKW7WLDTNNZnNQilUqkLgBxfN8N7/O+tgRD 6ki2MKtvLFeBVXF/XNP4Vdc8RtsZJ56gb+M7GLwTLsNb/ZSvWuOELhv3zhmWnQk5ikJo GZR09299F8M3HSCWS94m98KF3v7mjEPfOglrBGQIwodpp5OevDENJB2Wj53Re3wY7NUt BWenqc1YOQeThVWXqC/OjsgNclz2yP5rQZ3NIsR6fJcl+7bGFc4y+ET6aMVKLSed2/aT /lqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3x4zormwoK+Di9k+Nffx/KbIMqtdqqcz8872QniE2Tc=; b=cF72uV9MyZp24XMbjbCG4cRCrXuTDgYE98/k9Gud9OjQPl6Hp2WM1TEdXHMQYNN97Q NN8Ih4IXQKvWECtmAhIljci9MxsIf+53Kj4i9xtLEK9hbWP/Mawj8FIYYE57/6Isqn7y BuZwOA83+5HVxyLQmB5ODJHdYyroM3u5CGfKYiEaEX6LXBkCFzmfY+bFBz7GpyPvfxwi rzMrs1uoI3E4eJmkz3TsqvfiFMG4wUarkJwN18jexobaF+m0YeyUvql5q9k5M6wfrW5L ZvFViTN6vSZwpbf2aUil3CqFblgZ/TbvSQiTpkU2b3puQ7CbtXNR2l2AQjUx2Jgd5f+o TUhw== X-Gm-Message-State: AOAM532miSHmc7dV1kZx6cNm586vi1UFMveC6QHsKCvR7f5w80hP4oy5 2XXLPwPvIV36j8J2UOfQkU9Ss0HwKxoaJ7iQ7r6Zcvj+6Q== X-Google-Smtp-Source: ABdhPJwr9aMkt140Ov1DcfuwiIuEybegppjI1KcjI7XIKoaFzcL0xfgHE4o/L68SkHbHRN5V5BRTB1phyutqgWNwmIg= X-Received: by 2002:a05:6402:1254:: with SMTP id l20mr47806756edw.312.1600610087131; Sun, 20 Sep 2020 06:54:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nathan Neff Date: Sun, 20 Sep 2020 08:57:07 -0500 Message-ID: Subject: Re: Custom block agendas: Set buffer name To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000aaddc005afbf135e" Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=nathan.neff@gmail.com; helo=mail-ed1-x52a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=LGF9s36K; 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-Spam-Score: -1.71 X-TUID: nLeqmaHn9Vo/ --000000000000aaddc005afbf135e Content-Type: text/plain; charset="UTF-8" I found it in this section of the docs: https://orgmode.org/manual/Setting-options.html#Setting-options I had unbalanced parenthesis in Feb. and gave up. I was finally able to find the right place to put the options for all the commands (see org-agenda-buffer-name) below. I create variables and used functions to modularize my code - otherwise the parenthesis become unbearable IMHO. (setq org-agenda-custom-commands '()) (defun njn-define-block-agenda() (setq njn-agenda '(("h" "Agenda and Projects (Home)" ((agenda ) (tags "-projectA-projectB-projectC/next\|started" ((org-agenda-todo-ignore-with-date nil))) (tags "projectA-inactive/-cancelled-done" ((org-agenda-prefix-format " %?-12t% s") (org-agenda-sorting-strategy (quote (priority-down))))) (tags "projectA-inactive/-cancelled-done" ((org-agenda-prefix-format " %-16(njn-get-proj-property) %?-12t% s") (org-tags-exclude-from-inheritance (remove "projectA" org-tags-exclude-from-inheritance)) (org-agenda-group-by-property "PROJ")))) ((org-agenda-buffer-name "Home"))))) (setq org-agenda-custom-commands (append njn-agenda org-agenda-custom-commands))) (njn-define-block-agenda) I realize this is opening a can of worms -- does anyone have recommendations for formatting Lisp code? The above code is legible for me *right now* but in about 3 months the code will once again be a paren-fest. Thanks, --Nate On Wed, Feb 12, 2020 at 5:49 PM Nathan Neff wrote: > Hello all, > > I'm playing with block agendas and I'm wondering how to set a > specific buffer > name. > > In non-block agendas, I can set the buffer name like this: > (setq org-agenda-custom-commands (append > '( > ("p" "Simple list of active projects" tags-todo > "PRIORITY<\"C\"+project-inactive/-cancelled-done" > ((org-agenda-prefix-format " %?-12t% s") > (org-agenda-buffer-name "Top Level Active Projects") > (org-agenda-sorting-strategy (quote (priority-down))))) > > But I can't find where to specify org-agenda-buffer-name in a custom block > agenda - for example, > in the docs: > https://orgmode.org/manual/Block-agenda.html > > Where would I add the org-agenda-buffer-name? > > Thanks, > --Nate > --000000000000aaddc005afbf135e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I found= it in this section of the docs:

I had unbalanced pa= renthesis in Feb. and gave up.=C2=A0 I was finally able to find the right
place to put the options for all the commands (see org-agenda-= buffer-name) below.

I create variables and used fu= nctions to modularize my code - otherwise the parenthesis=C2=A0
b= ecome unbearable IMHO.

(setq org-agenda-custo= m-commands '())
(defun njn-define-block-agenda()
= =C2=A0 =C2=A0 (setq njn-agenda '(("h" "Agenda and Projec= ts (Home)"=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ((agenda )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(tags "-projectA-projectB-proj= ectC/next\|started" ((org-agenda-todo-ignore-with-date nil)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(tags "projectA-inactive/-cancelle= d-done"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((org-agen= da-prefix-format " %?-12t% s")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(org-agenda-sorting-strategy (quote (priority-down)= ))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(tags "projectA-inact= ive/-cancelled-done"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ((org-agenda-prefix-format " %-16(njn-get-proj-property) %?-12t% s= ")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-tags= -exclude-from-inheritance (remove "projectA" org-tags-exclude-fro= m-inheritance))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(= org-agenda-group-by-property "PROJ"))))
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0((org-agenda-buffer-name "Home")))))
=C2=A0 =C2=A0 (setq org-agenda-custom-commands (append njn-agenda org-age= nda-custom-commands)))
(njn-define-block-agenda)
=
I realize this is opening a can of worms -- does anyone have= recommendations for formatting
Lisp code?=C2=A0 The above code i= s legible for me *right now* but in about 3 months the code will once
=
again be a paren-fest.

Thanks,
--Na= te

On Wed, Feb 12, 2020 at 5:49 PM Nathan Neff <<= a href=3D"mailto:nathan.neff@gmail.com">nathan.neff@gmail.com> wrote= :
Hello all,

I'm playing with block agendas an= d I'm wondering how to set a specific=C2=A0buffer
name.
=

In non-block agendas, I can set the buffer name like th= is:
(setq org-agenda-custom-commands (append
=C2= =A0 '(
=C2=A0 =C2=A0 =C2=A0("p" "Simple list o= f active projects" tags-todo "PRIORITY<\"C\"+project= -inactive/-cancelled-done"
=C2=A0 =C2=A0 =C2=A0 =C2=A0((org-= agenda-prefix-format " %?-12t% s")
=C2=A0 =C2=A0 =C2=A0= =C2=A0 (org-agenda-buffer-name "Top Level Active Projects")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-sorting-strategy (quote (prio= rity-down)))))

But I can't find where to= specify org-agenda-buffer-name in a custom block agenda - for example,=C2= =A0
in the docs:

Where would I add the org-agenda-bu= ffer-name?

Thanks,
--Nate
--000000000000aaddc005afbf135e--