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
#+begin_src emacs-lisp
(with-eval-after-load 'mu4e
(require 'mu4e-icalendar)
(use-package gnus-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)
(setq mu4e-icalendar-trash-after-reply nil)
(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))
(with-eval-after-load 'mu4e
(require 'mu4e-icalendar))
#+end_src

View file

@ -134,9 +134,9 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+end_src
* org-agenda
#+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-sticky nil
org-agenda-sticky t
org-agenda-window-setup 'current-window
org-agenda-tags-column 0
org-agenda-diary-file 'diary-file
@ -147,25 +147,15 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s")
(todo . " %-12:c")
(tags . " %-12:c")
(search . " %-12:c"))
org-agenda-files (list
(search . " %-12:c")))
(require 'gnus-icalendar)
(setopt org-agenda-files (list
gnus-icalendar-org-capture-file
(expand-file-name org-directory)
(expand-file-name "journal" org-directory)
(expand-file-name "projects" org-directory)))
#+end_src
** Mobile agenda integration
Better syncing to mobile, for use with [[https://github.com/orgzly-revived/orgzly-android-revived][Orgzly]].
#+begin_src emacs-lisp
(with-eval-after-load 'org
(setq org-mobile-directory "~/.orgmobile/"
org-mobile-capture-file "inbox.org"
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
* org-journal
#+begin_src emacs-lisp :results output silent
(use-package org-journal