;;; Code: (require 'org) (defun org-custom-hook() "Custom org mode hook." (setq org-hide-emphasis-markers t) (font-lock-add-keywords 'org-mode '(("^ *\\([-]\\) " (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))) (let* ((variable-tuple (cond ((x-list-fonts "Iosevka") '(:font "Iosevka")) ((x-list-fonts "Monaco") '(:font "Monaco")) ((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro")))) (base-font-color (face-foreground 'default nil 'default)) (headline `(:inherit default :weight normal :foreground ,base-font-color))) (custom-theme-set-faces 'user `(org-level-8 ((t (,@headline ,@variable-tuple)))) `(org-level-7 ((t (,@headline ,@variable-tuple)))) `(org-level-6 ((t (,@headline ,@variable-tuple)))) `(org-level-5 ((t (,@headline ,@variable-tuple)))) `(org-level-4 ((t (,@headline ,@variable-tuple :height 1.0)))) `(org-level-3 ((t (,@headline ,@variable-tuple :height 1.1)))) `(org-level-2 ((t (,@headline ,@variable-tuple :height 1.3 :weight bold)))) `(org-level-1 ((t (,@headline ,@variable-tuple :height 1.5 :weight bold)))) `(org-document-title ((t (,@headline ,@variable-tuple :height 1.3 :weight:bold)))))) (custom-theme-set-faces 'user '(org-block ((t (:inherit fixed-pitch)))) '(org-code ((t (:inherit (shadow fixed-pitch))))) '(org-document-info ((t (:foreground "dark orange")))) '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch))))) '(org-indent ((t (:inherit (org-hide fixed-pitch))))) '(org-link ((t (:foreground "royal blue" :underline t)))) '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch))))) '(org-property-value ((t (:inherit fixed-pitch))) t) '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch))))) '(org-table ((t (:inherit fixed-pitch :foreground "#83a598")))) '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8)))) '(org-verbatim ((t (:inherit (shadow fixed-pitch)))))) (variable-pitch-mode 1) (use-package org-bullets :config (org-bullets-mode 1) ) (org-indent-mode 1) (visual-line-mode 1) ;; (setq org-blank-before-new-entry (quote ((heading . nil) ;; (plain-list-item . nil)))) (require 'flyspell) (flyspell-mode 1) ) (custom-set-variables '(org-directory "~/OrgRoam") '(org-agenda-files (list org-directory))) (setq org-todo-keywords '((sequence "TODO" "PROGRESS" "VERIFY" "|" "DONE" "ABANDONED"))) (setq org-todo-keyword-faces '(("TODO" . (:foreground "RED")) ("PROGRESS" . "royal blue") ("VERIFY" . "#E0A526") ("ABANDONED" . "light gray") ("DONE" . "dark green")) ) (add-hook 'org-mode-hook 'org-custom-hook) (use-package org-alert :ensure t :config (setq org-alert-interval 300 org-alert-notify-cutoff 10 org-alert-notify-after-event-cutoff 10 alert-default-style 'libnotify)) (use-package org-roam :ensure t :custom (org-roam-directory "~/OrgRoam") :bind (("C-c n l" . org-roam-buffer-toggle) ("C-c n f" . org-roam-node-find) ("C-c n i" . org-roam-node-insert)) :config (org-roam-setup) ) (provide 'org-custom) ;;; org-custom.el ends here