diff --git a/init.el b/init.el index 7884aeb..894b041 100644 --- a/init.el +++ b/init.el @@ -481,19 +481,53 @@ (python . t) (shell . t) (C . t))) + (org-agenda-files '("~/Agenda")) ;; NixOS minimal LaTeX setup (org-latex-compiler "lualatex") (org-preview-latex-default-process 'dvisvgm) :config - (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)) - (add-to-list 'org-modules 'org-tempo) + (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1) + org-modules (append '(org-tempo org-habit) org-modules)) (with-eval-after-load 'catppuccin-theme (face-spec-set 'org-block `((t (:foreground ,(catppuccin-get-color 'text))))))) +(use-package org-alert + :init + (when (daemonp) + (run-with-idle-timer 10 nil #'require 'org-alert)) + :config + (setq org-alert-notification-title "org-alert" + org-alert-notify-cutoff 30) + (org-alert-enable)) + (use-package org-modern :hook org-mode - (org-agenda-finalize . org-modern-agenda)) + (org-agenda-finalize . org-modern-agenda) + :config + (with-eval-after-load 'catppuccin-theme + (face-spec-set 'org-modern-done `((t (:foreground + ,(catppuccin-get-color 'text) + :background + ,(catppuccin-get-color 'surface0))))) + (face-spec-set 'org-modern-date-inactive `((t (:foreground + ,(catppuccin-get-color 'subtext0) + :background + ,(catppuccin-get-color 'surface0))))) + (face-spec-set 'org-modern-horizontal-rule `((t (:strike-through + ,(catppuccin-get-color 'overlay1))))) + (face-spec-set 'org-modern-tag `((t (:foreground + ,(catppuccin-get-color 'base) + :background + ,(catppuccin-get-color 'sapphire))))) + (face-spec-set 'org-modern-time-active `((t (:foreground + ,(catppuccin-get-color 'base) + :background + ,(catppuccin-get-color 'overlay2))))) + (face-spec-set 'org-modern-time-inactive `((t (:foreground + ,(catppuccin-get-color 'base) + :background + ,(catppuccin-get-color 'surface0))))))) (use-package org-modern-indent :ensure nil @@ -885,7 +919,8 @@ :config (scroll-bar-mode 0)) -(setq pixel-scroll-precision-large-scroll-height 40) +(setq pixel-scroll-precision-large-scroll-height 40 + fast-but-imprecise-scrolling t) (pixel-scroll-precision-mode) (setcar mouse-wheel-scroll-amount 3)