From 07c8e154114fb0e8a81d435933c1872b27eb3310 Mon Sep 17 00:00:00 2001 From: Max Schlueter Date: Sat, 10 Feb 2024 18:39:31 +0100 Subject: [PATCH] fixup! WIP: org-caldav --- config.el | 65 ++++--------------------------------------------------- 1 file changed, 4 insertions(+), 61 deletions(-) diff --git a/config.el b/config.el index f24977e..e454fa8 100644 --- a/config.el +++ b/config.el @@ -227,67 +227,6 @@ (map! :map Info-mode-map :n "g n" #'Info-goto-node)) -;; (setq max/org-calendar-directory (concat org-directory "calendar/")) -;; (setq max/org-calendar-file (concat max/org-calendar-directory "calendar.org")) - -;;; https://www.reddit.com/r/orgmode/comments/8rl8ep/making_orgcaldav_useable/ -;; (use-package! org-caldav -;; :after org -;; :init -;; ;; (defun org-caldav-sync-at-close () -;; ;; (org-caldav-sync) -;; ;; (save-some-buffers)) - -;; ;; (defvar org-caldav-sync-timer nil -;; ;; "Timer that `org-caldav-push-timer' used to reschedule itself, or nil.") -;; ;; (defun org-caldav-sync-with-delay (secs) -;; ;; (when org-caldav-sync-timer -;; ;; (cancel-timer org-caldav-sync-timer)) -;; ;; (setq org-caldav-sync-timer -;; ;; (run-with-idle-timer -;; ;; (* 1 secs) nil 'org-caldav-sync))) - -;; (setq org-icalendar-alarm-time 1) -;; :config -;; (setq org-caldav-resume-aborted 'always -;; org-caldav-save-directory max/org-calendar-directory -;; org-caldav-backup-file (concat max/org-calendar-directory "org-caldav-backup.org") -;; org-caldav-url "https://nextcloud.maxschlueter.com/remote.php/dav/calendars/max" -;; org-caldav-calendar-id "calendar" -;; org-caldav-files `(,max/org-calendar-file) -;; org-caldav-inbox max/org-calendar-file) - -;; (after! org-agenda -;; (add-to-list 'org-agenda-files max/org-calendar-file t) -;; (setq org-agenda-include-diary t -;; org-agenda-insert-diary-strategy 'top-level -;; org-agenda-insert-diary-extract-time t -;; org-agenda-diary-file max/org-calendar-file)) - -;; ;; (setq org-caldav-calendars -;; ;; `((:calendar-id "personal" -;; ;; :files (,(concat max/org-calendar-directory "personal.org")) -;; ;; :inbox ,(concat max/org-calendar-directory "personal.org")) -;; ;; (:calendar-id "work" -;; ;; :files (,(concat max/org-calendar-directory "work.org")) -;; ;; :inbox ,(concat max/org-calendar-directory "work.org")) -;; ;; )) - -;; (defun max/org-caldav-get-inbox () -;; (let* ((calid (completing-read "Calendar: " -;; (cl-loop for cal in org-caldav-calendars -;; collect (plist-get cal :calendar-id)) -;; nil t)) -;; (calinbox (cl-loop for cal in org-caldav-calendars -;; when (string= (plist-get cal :calendar-id) calid) -;; return (plist-get cal :inbox)))) -;; calinbox)) -;; ;; (add-hook 'after-save-hook -;; ;; (lambda () -;; ;; (when (eq major-mode 'org-mode) -;; ;; (org-caldav-sync-with-delay 300)))) -;; ;; (add-hook 'kill-emacs-hook 'org-caldav-sync-at-close) -;; ) (after! biblio (map! :map biblio-selection-mode-map @@ -397,6 +336,10 @@ (setq +latex-viewers '(pdf-tools)) +(after! eww + (setq eww-auto-rename-buffer 'title)) + + ;; (setq! +biblio-pdf-library-dir "~/Nextcloud/Papers/" ;; +biblio-default-bibliography-files '("~/Nextcloud/Papers/library.bib") ;; +biblio-notes-path org-roam-directory)