all repos — nixfiles @ 50c9f04d5b9b53667dc63ed40a6dafbc13ce1dc6

System and user configuration, managed by nix and home-manager

emacs: optimise loading org-mode
Alan Pearce alan@alanpearce.eu
Fri, 12 May 2023 09:18:39 +0200
commit

50c9f04d5b9b53667dc63ed40a6dafbc13ce1dc6

parent

0a1100beaed40bdfe39ad17a2b5d0f72f7de18fb

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -831,8 +831,12 @@ :ghook '(ledger-mode-hook)) 
 ;;;; org
 
-(setq org-ellipsis "…"
-      org-directory "~/Documents/org")
+(use-package org
+  :defer 10
+  :config (progn
+            (setq org-ellipsis "…"
+                  org-modules nil
+                  org-directory "~/Documents/org")))
 
 ;;;; web modes (html)