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:
parent
c9e1552c4c
commit
33d98328ef
7
init.el
7
init.el
|
@ -216,9 +216,7 @@
|
||||||
(use-package appt
|
(use-package appt
|
||||||
:custom
|
:custom
|
||||||
(appt-display-diary nil)
|
(appt-display-diary nil)
|
||||||
(appt-display-format 'echo)
|
(appt-display-format 'echo))
|
||||||
:config
|
|
||||||
(appt-activate +1))
|
|
||||||
|
|
||||||
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))
|
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))
|
||||||
|
|
||||||
|
@ -549,7 +547,8 @@
|
||||||
(use-package org-agenda
|
(use-package org-agenda
|
||||||
:after org
|
:after org
|
||||||
:bind (("C-c a" . org-agenda))
|
: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
|
:custom
|
||||||
(org-agenda-span 'week)
|
(org-agenda-span 'week)
|
||||||
(org-agenda-start-on-weekday 1)
|
(org-agenda-start-on-weekday 1)
|
||||||
|
|
Loading…
Reference in a new issue