Set up org-agenda

This commit is contained in:
eriedaberrie 2023-05-03 18:17:26 -07:00
parent 90c5afd4f2
commit 9ff5d7c7f1

43
init.el
View file

@ -481,19 +481,53 @@
(python . t) (python . t)
(shell . t) (shell . t)
(C . t))) (C . t)))
(org-agenda-files '("~/Agenda"))
;; NixOS minimal LaTeX setup ;; NixOS minimal LaTeX setup
(org-latex-compiler "lualatex") (org-latex-compiler "lualatex")
(org-preview-latex-default-process 'dvisvgm) (org-preview-latex-default-process 'dvisvgm)
:config :config
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)
(add-to-list 'org-modules 'org-tempo) org-modules (append '(org-tempo org-habit) org-modules))
(with-eval-after-load 'catppuccin-theme (with-eval-after-load 'catppuccin-theme
(face-spec-set 'org-block `((t (:foreground ,(catppuccin-get-color 'text))))))) (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 (use-package org-modern
:hook :hook
org-mode 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 (use-package org-modern-indent
:ensure nil :ensure nil
@ -885,7 +919,8 @@
:config :config
(scroll-bar-mode 0)) (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) (pixel-scroll-precision-mode)
(setcar mouse-wheel-scroll-amount 3) (setcar mouse-wheel-scroll-amount 3)