Merge pull request #1834 from plantarum/ical

Ical documentation
This commit is contained in:
Dirk-Jan C. Binnema 2020-11-15 20:00:15 +02:00 committed by GitHub
commit d33d48665f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 56 additions and 0 deletions

View File

@ -3209,6 +3209,7 @@ with other tools.
* Speedbar::A special frame with your folders
* Dired:: Attaching files using @t{dired}
* Hydra:: Custom shortcut menus
* iCalendar Integration:: Enabling iCalendar invite processing in mu4e
@end menu
@node Emacs default
@ -3536,6 +3537,61 @@ With Hydra installed, we can add multi-character shortcuts, for instance:
Now, you can bind a convenient key to my-mu4e-bookmarks/body.
@end lisp
@node iCalendar Integration
@section iCalendar Integration
By default, mu4e presents iCalendar invitations as .vcs file
attachments. Experimental support is available to parse these
attachments in order to add the expected ``Accept'', ``Reject'', ``Add
to Calendar'' buttons. This requires using Gnus' article view, instead
of mu4e's internal viewer. We do this by setting the value of
mu4e-view-use-gnus:
@lisp
(setq mu4e-view-use-gnus t)
@end lisp
The minimal setup is:
@lisp
(require 'mu4e-icalendar)
(mu4e-icalendar-setup)
@end lisp
To add the event to a diary file of your choice:
@lisp
(setq mu4e-icalendar-diary-file "/path/to/your/diary")
@end lisp
To enable optional functionality to capture iCalendar events to your org files:
@lisp
(require 'org-agenda)
(setq gnus-icalendar-org-capture-file "~/org/notes.org")
(setq gnus-icalendar-org-capture-headline '("Calendar"))
(gnus-icalendar-org-setup)
@end lisp
NOTE: both the capture file and the headline(s) inside must already
exist.
These features require the Gnus article viewer. This is currently
experimental, and doesn't yet support all the features available with
mu4e's internal viewer. Consequently, you may want a way to toggle
between the two modes. You can do this with the following:
@lisp
(defun mu4e-toggle-gnus-view ()
(interactive)
(mu4e~view-quit-buffer)
(setq mu4e-view-use-gnus
(not mu4e-view-use-gnus))
(mu4e-headers-view-message))
(define-key mu4e-view-mode-map "i" 'mu4e-toggle-gnus-view)
@end lisp
@node Example configs
@appendix Example configs