Skip to content

Commit

Permalink
tweak(org): better deferring of Org related packages
Browse files Browse the repository at this point in the history
(cherry picked from commit 5edcdd9)
  • Loading branch information
abougouffa committed Dec 3, 2024
1 parent 43152d8 commit 85f2bdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ or file path may exist now."

(use-package org
:ensure t
:defer 10 ; load after 10s of inactivity
:preface
;; Set to nil so we can detect user changes (in config.el)
(setq org-directory nil)
Expand Down Expand Up @@ -805,7 +806,6 @@ or file path may exist now."
(org-agenda-tags-column 0))

(use-package ox-latex
:after ox
:custom
(org-latex-src-block-backend 'engraved)
(org-latex-prefer-user-labels t)
Expand Down Expand Up @@ -861,8 +861,6 @@ or file path may exist now."
(mapc #'require '(ox-odt ox-beamer ox-koma-letter)))

(use-package oc
:after org
:demand
:custom
(org-cite-export-processors '((latex biblatex) (t csl)))
(org-support-shift-select t)
Expand Down
9 changes: 4 additions & 5 deletions modules/me-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
;; Modern Org style
(use-package org-modern
:ensure t
:hook (org-mode . org-modern-mode)
:hook (org-agenda-finalize . org-modern-agenda)
:after org
:custom-face
;; Force monospaced font for tags
(org-modern-tag ((t (:inherit org-verbatim :weight regular :foreground "black" :background "LightGray" :box "black"))))
Expand All @@ -85,7 +84,9 @@
("KILL" . (:inherit org-verbatim :weight semi-bold :foreground "white" :background "DarkGreen"))
("PROJ" . (:inherit org-verbatim :weight semi-bold :foreground "white" :background "LimeGreen"))
("HOLD" . (:inherit org-verbatim :weight semi-bold :foreground "white" :background "orange"))
("DONE" . (:inherit org-verbatim :weight semi-bold :foreground "black" :background "LightGray")))))
("DONE" . (:inherit org-verbatim :weight semi-bold :foreground "black" :background "LightGray"))))
:init
(global-org-modern-mode 1))


;; Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
Expand All @@ -105,8 +106,6 @@
;; Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents
(use-package citar
:ensure t
:after minemacs-first-org-file oc
:demand
:custom
(org-cite-insert-processor 'citar)
(org-cite-follow-processor 'citar)
Expand Down

0 comments on commit 85f2bdc

Please sign in to comment.