mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Caldav
This commit is contained in:
parent
b1c5f9117a
commit
4be1ff1d85
3 changed files with 48 additions and 1 deletions
44
lisp/org-config/caldav.el
Normal file
44
lisp/org-config/caldav.el
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
;;; caldav.el --- -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) 2024 Benson Chu
|
||||
|
||||
;; Author: Benson Chu <bensonchu457@gmail.com>
|
||||
;; Created: [2024-10-08 05:56]
|
||||
|
||||
;; This file is not part of GNU Emacs
|
||||
|
||||
;; This program is free software: you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation, either version 3 of the License, or
|
||||
;; (at your option) any later version.
|
||||
|
||||
;; This program is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
(require 'org-caldav)
|
||||
|
||||
;; URL of the caldav server
|
||||
(setq org-caldav-url "https://nextcloud.notak8scluster.ddnsfree.com/remote.php/dav/calendars/lambda")
|
||||
|
||||
;; calendar ID on server
|
||||
(setq org-caldav-calendar-id "lambda-production")
|
||||
|
||||
;; Org filename where new entries from calendar stored
|
||||
(setq org-caldav-inbox (my/agenda-file "calendar.org"))
|
||||
|
||||
;; Additional Org files to check for calendar events
|
||||
(setq org-caldav-files nil)
|
||||
|
||||
;; Usually a good idea to set the timezone manually
|
||||
(setq org-icalendar-timezone "America/Chicago")
|
||||
|
||||
(provide 'caldav)
|
||||
;;; caldav.el ends here
|
||||
|
|
@ -60,11 +60,13 @@
|
|||
(custom-set-variables
|
||||
`(org-agenda-files
|
||||
'(,(my/agenda-file "plan.org")
|
||||
,(my/agenda-file "thoughts.org")
|
||||
,(my/agenda-file "refile.org")
|
||||
,(my/agenda-file "sandbox.org")
|
||||
,(my/agenda-file "dev.org")
|
||||
,(my/agenda-file "prod.org")
|
||||
,(my/agenda-file "habits.org"))))
|
||||
,(my/agenda-file "habits.org")
|
||||
,(my/agenda-file "calendar.org"))))
|
||||
|
||||
(defconst my/all-agenda-files
|
||||
(cons (my/agenda-file "eternal.org")
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
(require 'my-org-capture-shouldnt-mess-windows)
|
||||
|
||||
(require 'self-chat-mode)
|
||||
(require 'caldav)
|
||||
|
||||
(provide 'my-org)
|
||||
;;; my-org.el ends here
|
||||
|
|
|
|||
Loading…
Reference in a new issue