This commit is contained in:
2026-02-25 07:29:35 +02:00
parent 4e19102117
commit aa82394b77
2 changed files with 77 additions and 75 deletions

View File

@@ -38,13 +38,15 @@
;; This determines the style of line numbers in effect. If set to `nil', line ;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'. ;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(when (daemonp)
(add-hook 'server-after-make-frame-hook #'darkman-mode) (add-hook 'doom-after-init-hook #'darkman-mode)
(advice-add 'darkman-mode ;; (when (daemonp)
:after ;; (add-hook 'server-after-make-frame-hook #'darkman-mode)
(lambda () ;; (advice-add 'darkman-mode
(remove-hook 'server-after-make-frame-hook ;; :after
#'darkman-mode)))) ;; (lambda ()
;; (remove-hook 'server-after-make-frame-hook
;; #'darkman-mode))))
;; If you use `org' and don't want your org files in the default location below, ;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads! ;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/") (setq org-directory "~/org/")
@@ -150,69 +152,69 @@
;; Silly Latex ;; Silly Latex
(setq-default org-latex-toc-command "\\tableofcontents \\clearpage ") (setq-default org-latex-toc-command "\\tableofcontents \\clearpage ")
;;org-caldav ;; ;;org-caldav
(use-package! org-caldav ;; (use-package! org-caldav
:init ;; :init
;; This is the sync on close function; it also prompts for save after syncing so ;; ;; This is the sync on close function; it also prompts for save after syncing so
;; no late changes get lost ;; ;; no late changes get lost
(defun org-caldav-sync-at-close () ;; (defun org-caldav-sync-at-close ()
(org-caldav-sync) ;; (org-caldav-sync)
(save-some-buffers)) ;; (save-some-buffers))
;; ;; ;;
;; This is the delayed sync function; it waits until emacs has been idle for ;; ;; This is the delayed sync function; it waits until emacs has been idle for
;; "secs" seconds before syncing. The delay is important because the caldav-sync ;; ;; "secs" seconds before syncing. The delay is important because the caldav-sync
;; can take five or ten seconds, which would be painful if it did that right at save. ;; ;; can take five or ten seconds, which would be painful if it did that right at save.
;; This way it just waits until you've been idle for a while to avoid disturbing ;; ;; This way it just waits until you've been idle for a while to avoid disturbing
;; the user. ;; ;; the user.
(setq-default org-caldav-inbox nil) ;; (setq-default org-caldav-inbox nil)
(setq org-caldav-calendar-id nil) ;; (setq org-caldav-calendar-id nil)
(setq org-caldav-files '("~/org/.archive/appointments.org")) ;; (setq org-caldav-files '("~/org/.archive/appointments.org"))
;; Actual calendar configuration edit this to meet your specific needs ;; ;; Actual calendar configuration edit this to meet your specific needs
(setq org-caldav-url "https://cloud.sewelam.org/remote.php/dav/calendars/Aly") ;; (setq org-caldav-url "https://cloud.sewelam.org/remote.php/dav/calendars/Aly")
(setq org-caldav-calendars ;; (setq org-caldav-calendars
'( ;; '(
;; (:calendar-id "capture-1" ;; ;; (:calendar-id "capture-1"
;; :files ("~/org/todo.org") ;; ;; :files ("~/org/todo.org")
;; :inbox "~/org/todo.org") ;; ;; :inbox "~/org/todo.org")
(:calendar-id "work" ;; (:calendar-id "work"
:files ("~/org/work.org") ;; :files ("~/org/work.org")
;; :inbox "~/org/from_work.org" ;; ;; :inbox "~/org/from_work.org"
) ;; )
(:calendar-id "home" ;; (:calendar-id "home"
:files: ("~/org/home.org") ;; :files: ("~/org/home.org")
:inbox "~/org/home.org") ;; :inbox "~/org/home.org")
)) ;; ))
(setq org-caldav-backup-file "~/org-caldav/org-caldav-backup.org") ;; (setq org-caldav-backup-file "~/org-caldav/org-caldav-backup.org")
(setq org-caldav-save-directory "~/org-caldav/") ;; (setq org-caldav-save-directory "~/org-caldav/")
(setq org-icalendar-categories '(local-tags)) ;; (setq org-icalendar-categories '(local-tags))
:config ;; :config
(setq org-icalendar-alarm-time 1) ;; (setq org-icalendar-alarm-time 1)
(setq org-caldav-sync-direction 'org->cal) ;; (setq org-caldav-sync-direction 'org->cal)
;; This makes sure to-do items as a category can show up on the calendar ;; ;; This makes sure to-do items as a category can show up on the calendar
(setq org-icalendar-include-todo 'all) ;; (setq org-icalendar-include-todo 'all)
(setq org-caldav-sync-todo nil) ;; (setq org-caldav-sync-todo nil)
(setq org-caldav-delete-calendar-entries 'always) ;; (setq org-caldav-delete-calendar-entries 'always)
(setq org-caldav-delete-org-entries 'always) ;; (setq org-caldav-delete-org-entries 'always)
;; This ensures all org "deadlines" show up, and show up as due dates ;; ;; This ensures all org "deadlines" show up, and show up as due dates
(setq org-icalendar-use-deadline '(todo-due)) ;; (setq org-icalendar-use-deadline '(todo-due))
;; This ensures "scheduled" org items show up, and show up as start times ;; ;; This ensures "scheduled" org items show up, and show up as start times
(setq org-icalendar-use-scheduled '(todo-start)) ;; (setq org-icalendar-use-scheduled '(todo-start))
;; Add the delayed save hook with a five minute idle timer ;; ;; Add the delayed save hook with a five minute idle timer
;; (add-hook 'after-save-hook ;; ;; (add-hook 'after-save-hook
;; (lambda () ;; ;; (lambda ()
;; (when (eq major-mode 'org-mode) ;; ;; (when (eq major-mode 'org-mode)
;; (org-caldav-sync-with-delay 300)))) ;; ;; (org-caldav-sync-with-delay 300))))
;; Add the close emacs hook ;; ;; Add the close emacs hook
(add-hook 'kill-emacs-hook 'org-caldav-sync-at-close) ;; ;; (add-hook 'kill-emacs-hook 'org-caldav-sync-at-close)
(add-to-list 'org-caldav-todo-percent-states ;; (add-to-list 'org-caldav-todo-percent-states
'( 0 "IDEA") ;; '( 0 "IDEA")
) ;; )
(add-to-list 'org-caldav-todo-percent-states ;; (add-to-list 'org-caldav-todo-percent-states
'( 0 "WAIT") ;; '( 0 "WAIT")
) ;; )
) ;; )
(setq auth-sources '("~/.authinfo.gpg")) (setq auth-sources '("~/.authinfo.gpg"))
;; MORE TEMPLATES ;; MORE TEMPLATES

View File

@@ -41,18 +41,18 @@
;(package! builtin-package :pin "1a2b3c4d5e") ;(package! builtin-package :pin "1a2b3c4d5e")
(package! org-roam-ui) (package! org-roam-ui)
(package! chezmoi) (package! chezmoi)
(package! org-caldav) ;; (package! org-caldav)
(package! telega) (package! telega)
(package! android-mode) (package! android-mode)
(package! org-modern) (package! org-modern)
(package! ranger) ;; (package! ranger)
(package! flymake-ruff) (package! flymake-ruff)
;; (package! org-alert) ;; (package! org-alert)
(package! org-wild-notifier) (package! org-wild-notifier)
(package! org-contacts) ;; (package! org-contacts)
(package! darkman) (package! darkman)
(package! processing-mode) ;; (package! processing-mode)
(package! processing-snippets) ;; (package! processing-snippets)
(package! awqat (package! awqat
:recipe (:host github :recipe (:host github
:repo "zkry/awqat")) :repo "zkry/awqat"))
@@ -60,7 +60,7 @@
(package! ponylang-mode) (package! ponylang-mode)
(package! pony-mode) (package! pony-mode)
;; (package! org-pomodoro) ;; (package! org-pomodoro)
(package! org-trello) ;; (package! org-trello)
(package! protobuf-mode) (package! protobuf-mode)
(package! poetry) (package! poetry)
(package! verb) (package! verb)
@@ -75,7 +75,7 @@
(package! package-lint :pin "21edc6d0d0eadd2d0a537f422fb9b7b8a3ae6991") (package! package-lint :pin "21edc6d0d0eadd2d0a537f422fb9b7b8a3ae6991")
(package! auctex :pin "86b2397abdc20a638e5751251026727bc6282022") (package! auctex :pin "86b2397abdc20a638e5751251026727bc6282022")
;; (package! ellama) ;; (package! ellama)
(package! mpdel) ;; (package! mpdel)
(package! graphviz-dot-mode) (package! graphviz-dot-mode)
(package! xclip) (package! xclip)
(package! gnuplot) (package! gnuplot)