Add khalel and config to sync ics files into org-agenda
Updage khal format strings to work with khalel Remove syncing display name as contact birthdays messes with khalel tagging (because of the space)
This commit is contained in:
parent
e3f5714001
commit
fee71e703c
|
@ -3,7 +3,16 @@
|
|||
{
|
||||
programs = {
|
||||
vdirsyncer.enable = true;
|
||||
khal.enable = true;
|
||||
khal = {
|
||||
enable = true;
|
||||
locale = {
|
||||
timeformat = "%H:%M";
|
||||
dateformat = "%Y-%m-%d";
|
||||
longdateformat = "%Y-%m-%d %a";
|
||||
datetimeformat = "%Y-%m-%d %H:%M";
|
||||
longdatetimeformat = "%Y-%m-%d %H:%M";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.vdirsyncer.enable = true;
|
||||
accounts.calendar = {
|
||||
|
@ -32,7 +41,7 @@
|
|||
vdirsyncer = {
|
||||
enable = lib.mkDefault true;
|
||||
collections = [ "from a" ];
|
||||
metadata = [ "color" "displayname" ];
|
||||
metadata = [ "color" ];
|
||||
};
|
||||
khal = {
|
||||
inherit (vdirsyncer) enable;
|
||||
|
@ -52,7 +61,6 @@
|
|||
vdirsyncer = {
|
||||
enable = lib.mkDefault emailConfig.mbsync.enable;
|
||||
collections = [ "Work" "Operations" ];
|
||||
metadata = [ "displayname" ];
|
||||
};
|
||||
khal = {
|
||||
inherit (vdirsyncer) enable;
|
||||
|
|
|
@ -49,4 +49,11 @@
|
|||
:emptry-lines 1)
|
||||
))
|
||||
|
||||
(when (require 'khalel nil :noerror)
|
||||
(setq khalel-import-org-file-read-only nil
|
||||
khalel-import-org-file (expand-file-name "calendar.org" org-directory)
|
||||
khalel-import-start-date "-30d"
|
||||
khalel-import-end-date "+30d")
|
||||
(khalel-add-capture-template "e"))
|
||||
|
||||
(provide 'custom-org-config)
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
org-cliplink
|
||||
org-journal
|
||||
org-modern
|
||||
khalel
|
||||
|
||||
# project-packages
|
||||
magit
|
||||
|
|
Loading…
Reference in a new issue