Activate appt with org-agenda-mode

Move org-agenda-to-appt call to org-agenda-finalize hook, to save
duplicate decryption of org-agenda-files when agenda mode starts and
when it's displayed
This commit is contained in:
Evie Litherland-Smith 2024-07-02 08:57:12 +01:00
parent c9e1552c4c
commit 33d98328ef

View file

@ -216,9 +216,7 @@
(use-package appt
:custom
(appt-display-diary nil)
(appt-display-format 'echo)
:config
(appt-activate +1))
(appt-display-format 'echo))
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))
@ -549,7 +547,8 @@
(use-package org-agenda
:after org
:bind (("C-c a" . org-agenda))
:hook (org-agenda-mode . org-agenda-to-appt)
:hook ((org-agenda-mode . (lambda () (appt-activate +1)))
(org-agenda-finalize . org-agenda-to-appt))
:custom
(org-agenda-span 'week)
(org-agenda-start-on-weekday 1)