Commit 8ee0536dac2d

Vincent Demeester <vincent@sbr.pm>
2025-06-12 01:25:55
tools/emacs/mini: only load org if the org-directory exists
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 15f1399
Changed files (1)
tools
emacs
tools/emacs/mini/init.el
@@ -886,6 +886,7 @@ minibuffer, even without explicitly focusing it."
 ;; TODO window management
 ;; TODO ORG mode configuration (BIG one)
 (use-package org
+  :if (file-exists-p org-directory)
   :mode (("\\.org$" . org-mode)
          ("\\.org.draft$" . org-mode))
   :commands (org-agenda org-capture)