Add new email.org file to org-agenda files

Set agenda view back to week by default, make agenda sticky again

Rewrite mu4e icalendar integration settings to use use-package blocks,
allow use of gnus-icalendar for getting capture file in org-agenda-files
This commit is contained in:
Evie Litherland-Smith 2024-04-08 10:53:53 +01:00
parent 3c03231e7e
commit 5c9833573c
2 changed files with 23 additions and 24 deletions

View file

@ -294,12 +294,21 @@
** iCalendar integration ** iCalendar integration
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (use-package gnus-icalendar
(require 'mu4e-icalendar) :custom
(gnus-icalendar-org-capture-file (expand-file-name ".diary/email.org.gpg" gnus-home-directory))
(gnus-icalendar-org-capture-headline '("Inbox"))
:config (gnus-icalendar-org-setup))
(use-package mu4e-icalendar
:after mu4e
:custom
(mu4e-icalendar-trash-after-reply nil)
:config
(mu4e-icalendar-setup) (mu4e-icalendar-setup)
(setq mu4e-icalendar-trash-after-reply nil)
(require 'gnus-icalendar) (require 'gnus-icalendar)
(setq gnus-icalendar-org-capture-file (expand-file-name ".diary/email.org.gpg" gnus-home-directory))
(setq gnus-icalendar-org-capture-headline '("Inbox"))
(gnus-icalendar-org-setup)) (gnus-icalendar-org-setup))
(with-eval-after-load 'mu4e
(require 'mu4e-icalendar))
#+end_src #+end_src

View file

@ -134,9 +134,9 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+end_src #+end_src
* org-agenda * org-agenda
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(setq org-agenda-span 'day (setq org-agenda-span 'week
org-agenda-start-on-weekday 1 org-agenda-start-on-weekday 1
org-agenda-sticky nil org-agenda-sticky t
org-agenda-window-setup 'current-window org-agenda-window-setup 'current-window
org-agenda-tags-column 0 org-agenda-tags-column 0
org-agenda-diary-file 'diary-file org-agenda-diary-file 'diary-file
@ -147,24 +147,14 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s") org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s")
(todo . " %-12:c") (todo . " %-12:c")
(tags . " %-12:c") (tags . " %-12:c")
(search . " %-12:c")) (search . " %-12:c")))
org-agenda-files (list
(expand-file-name org-directory)
(expand-file-name "journal" org-directory)
(expand-file-name "projects" org-directory)))
#+end_src
** Mobile agenda integration (require 'gnus-icalendar)
Better syncing to mobile, for use with [[https://github.com/orgzly-revived/orgzly-android-revived][Orgzly]]. (setopt org-agenda-files (list
#+begin_src emacs-lisp gnus-icalendar-org-capture-file
(with-eval-after-load 'org (expand-file-name org-directory)
(setq org-mobile-directory "~/.orgmobile/" (expand-file-name "journal" org-directory)
org-mobile-capture-file "inbox.org" (expand-file-name "projects" org-directory)))
org-mobile-agendas nil
org-mobile-files (list (expand-file-name "diary.org" org-directory))
org-mobile-inbox-for-pull (expand-file-name "inbox.org" org-directory)
org-mobile-force-id-on-agenda-items nil)
(add-hook 'org-capture-finalize-hook #'org-mobile-push))
#+end_src #+end_src
* org-journal * org-journal
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent