From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: tags-todo agenda: Show scheduling info Date: Sat, 2 Nov 2019 12:28:57 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33199) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQz54-0004w5-5D for emacs-orgmode@gnu.org; Sat, 02 Nov 2019 15:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQz52-0007Cw-Th for emacs-orgmode@gnu.org; Sat, 02 Nov 2019 15:29:01 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:36743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQz52-0007CJ-Mg for emacs-orgmode@gnu.org; Sat, 02 Nov 2019 15:29:00 -0400 Received: by mail-lf1-x132.google.com with SMTP id a6so6075372lfo.3 for ; Sat, 02 Nov 2019 12:29:00 -0700 (PDT) In-Reply-To: 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: Nathan Neff Cc: emacs-orgmode the following will not work for you due to dependencies. has worked for me for many years. puts ! in agenda prefix if schedule or deadline. if it is agenda agenda [timestamp agenda, daily/weekly agenda] it requires closed also. (with-eval-after-load 'org-agenda ;; bangify agenda prefix (cl-loop for entry in org-agenda-prefix-format do ;; remove colon from category (alpha-asetf (cdr entry) (replace-regexp-in-string ":" "" it)) ;; add ! (alpha-asetf (cdr entry) (replace-regexp-in-string "%i " (concat "%i%" ;; (setq entry '(agenda . " %i hi")) (format "%s" `(alpha-org-agenda-prefix-bangify ,(when (eq (car entry) 'agenda) '(quote and-closed))))) it))) (defun alpha-org-agenda-prefix-bangify (&optional and-closed) "If and-closed, require that it also be closed. Useful for agenda agenda where most things are scheduled or deadlined thus would be pointlessly bangified." ;; (looking-back-at (if (and (or (not and-closed) (alpha-org-entry-get "CLOSED")) (or (alpha-org-entry-get "SCHEDULED") (alpha-org-entry-get "DEADLINE"))) "!" " "))) -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time.