2

You can set it globally with the variable org-deadline-warning-days. For example, to start showing all tasks 3 days before the deadline: (setq org-deadline-warning-days 3) If you want to set it individually, you can use the following construct in the timestamp itself: DEADLINE: <2021-07-20 dom -3d> Here, you can also use other modifiers, such as ...


1

Per NickD's comment this may well be a bug. In the meantime, it looks like this does what you're aiming for (or at least points you in the right direction): (defun dunne//add-deadline-warning (w) (save-excursion (org-back-to-heading t) (let* ((regexp org-deadline-time-regexp)) (if (not (re-search-forward regexp (line-end-position 2) t)) ...


Only top voted, non community-wiki answers of a minimum length are eligible