From aa82394b77a49607ae5ea801e4e575e4d252e7df Mon Sep 17 00:00:00 2001 From: Aly Sewelam Date: Wed, 25 Feb 2026 07:29:35 +0200 Subject: [PATCH] YEAH! --- private_dot_config/doom/config.el | 138 ++++++++++++++-------------- private_dot_config/doom/packages.el | 14 +-- 2 files changed, 77 insertions(+), 75 deletions(-) diff --git a/private_dot_config/doom/config.el b/private_dot_config/doom/config.el index 14ccd4f..1975375 100644 --- a/private_dot_config/doom/config.el +++ b/private_dot_config/doom/config.el @@ -38,13 +38,15 @@ ;; 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'. (setq display-line-numbers-type 'relative) -(when (daemonp) - (add-hook 'server-after-make-frame-hook #'darkman-mode) - (advice-add 'darkman-mode - :after - (lambda () - (remove-hook 'server-after-make-frame-hook - #'darkman-mode)))) + +(add-hook 'doom-after-init-hook #'darkman-mode) +;; (when (daemonp) +;; (add-hook 'server-after-make-frame-hook #'darkman-mode) +;; (advice-add 'darkman-mode +;; :after +;; (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, ;; change `org-directory'. It must be set before org loads! (setq org-directory "~/org/") @@ -150,69 +152,69 @@ ;; Silly Latex (setq-default org-latex-toc-command "\\tableofcontents \\clearpage ") -;;org-caldav -(use-package! org-caldav - :init - ;; This is the sync on close function; it also prompts for save after syncing so - ;; no late changes get lost - (defun org-caldav-sync-at-close () - (org-caldav-sync) - (save-some-buffers)) -;; - ;; 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 - ;; 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 - ;; the user. - (setq-default org-caldav-inbox nil) - (setq org-caldav-calendar-id nil) +;; ;;org-caldav +;; (use-package! org-caldav +;; :init +;; ;; This is the sync on close function; it also prompts for save after syncing so +;; ;; no late changes get lost +;; (defun org-caldav-sync-at-close () +;; (org-caldav-sync) +;; (save-some-buffers)) +;; ;; +;; ;; 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 +;; ;; 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 +;; ;; the user. +;; (setq-default org-caldav-inbox nil) +;; (setq org-caldav-calendar-id nil) - (setq org-caldav-files '("~/org/.archive/appointments.org")) - ;; 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-calendars - '( -;; (:calendar-id "capture-1" -;; :files ("~/org/todo.org") -;; :inbox "~/org/todo.org") - (:calendar-id "work" - :files ("~/org/work.org") - ;; :inbox "~/org/from_work.org" - ) - (:calendar-id "home" - :files: ("~/org/home.org") - :inbox "~/org/home.org") - )) - (setq org-caldav-backup-file "~/org-caldav/org-caldav-backup.org") - (setq org-caldav-save-directory "~/org-caldav/") - (setq org-icalendar-categories '(local-tags)) +;; (setq org-caldav-files '("~/org/.archive/appointments.org")) +;; ;; 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-calendars +;; '( +;; ;; (:calendar-id "capture-1" +;; ;; :files ("~/org/todo.org") +;; ;; :inbox "~/org/todo.org") +;; (:calendar-id "work" +;; :files ("~/org/work.org") +;; ;; :inbox "~/org/from_work.org" +;; ) +;; (:calendar-id "home" +;; :files: ("~/org/home.org") +;; :inbox "~/org/home.org") +;; )) +;; (setq org-caldav-backup-file "~/org-caldav/org-caldav-backup.org") +;; (setq org-caldav-save-directory "~/org-caldav/") +;; (setq org-icalendar-categories '(local-tags)) - :config - (setq org-icalendar-alarm-time 1) - (setq org-caldav-sync-direction 'org->cal) - ;; This makes sure to-do items as a category can show up on the calendar - (setq org-icalendar-include-todo 'all) - (setq org-caldav-sync-todo nil) - (setq org-caldav-delete-calendar-entries 'always) - (setq org-caldav-delete-org-entries 'always) - ;; This ensures all org "deadlines" show up, and show up as due dates - (setq org-icalendar-use-deadline '(todo-due)) - ;; This ensures "scheduled" org items show up, and show up as start times - (setq org-icalendar-use-scheduled '(todo-start)) - ;; Add the delayed save hook with a five minute idle timer - ;; (add-hook 'after-save-hook - ;; (lambda () - ;; (when (eq major-mode 'org-mode) - ;; (org-caldav-sync-with-delay 300)))) - ;; Add the close emacs hook - (add-hook 'kill-emacs-hook 'org-caldav-sync-at-close) - (add-to-list 'org-caldav-todo-percent-states - '( 0 "IDEA") - ) - (add-to-list 'org-caldav-todo-percent-states - '( 0 "WAIT") - ) - ) +;; :config +;; (setq org-icalendar-alarm-time 1) +;; (setq org-caldav-sync-direction 'org->cal) +;; ;; This makes sure to-do items as a category can show up on the calendar +;; (setq org-icalendar-include-todo 'all) +;; (setq org-caldav-sync-todo nil) +;; (setq org-caldav-delete-calendar-entries 'always) +;; (setq org-caldav-delete-org-entries 'always) +;; ;; This ensures all org "deadlines" show up, and show up as due dates +;; (setq org-icalendar-use-deadline '(todo-due)) +;; ;; This ensures "scheduled" org items show up, and show up as start times +;; (setq org-icalendar-use-scheduled '(todo-start)) +;; ;; Add the delayed save hook with a five minute idle timer +;; ;; (add-hook 'after-save-hook +;; ;; (lambda () +;; ;; (when (eq major-mode 'org-mode) +;; ;; (org-caldav-sync-with-delay 300)))) +;; ;; Add the close emacs hook +;; ;; (add-hook 'kill-emacs-hook 'org-caldav-sync-at-close) +;; (add-to-list 'org-caldav-todo-percent-states +;; '( 0 "IDEA") +;; ) +;; (add-to-list 'org-caldav-todo-percent-states +;; '( 0 "WAIT") +;; ) +;; ) (setq auth-sources '("~/.authinfo.gpg")) ;; MORE TEMPLATES diff --git a/private_dot_config/doom/packages.el b/private_dot_config/doom/packages.el index 33e860c..56bfee2 100644 --- a/private_dot_config/doom/packages.el +++ b/private_dot_config/doom/packages.el @@ -41,18 +41,18 @@ ;(package! builtin-package :pin "1a2b3c4d5e") (package! org-roam-ui) (package! chezmoi) -(package! org-caldav) +;; (package! org-caldav) (package! telega) (package! android-mode) (package! org-modern) -(package! ranger) +;; (package! ranger) (package! flymake-ruff) ;; (package! org-alert) (package! org-wild-notifier) -(package! org-contacts) +;; (package! org-contacts) (package! darkman) -(package! processing-mode) -(package! processing-snippets) +;; (package! processing-mode) +;; (package! processing-snippets) (package! awqat :recipe (:host github :repo "zkry/awqat")) @@ -60,7 +60,7 @@ (package! ponylang-mode) (package! pony-mode) ;; (package! org-pomodoro) -(package! org-trello) +;; (package! org-trello) (package! protobuf-mode) (package! poetry) (package! verb) @@ -75,7 +75,7 @@ (package! package-lint :pin "21edc6d0d0eadd2d0a537f422fb9b7b8a3ae6991") (package! auctex :pin "86b2397abdc20a638e5751251026727bc6282022") ;; (package! ellama) -(package! mpdel) +;; (package! mpdel) (package! graphviz-dot-mode) (package! xclip) (package! gnuplot)