about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/sterni/emacs/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index c75050b2cc16..a82093ca1371 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -7,7 +7,6 @@
   (set-fontset-font t nil emoji-font))
 
 (setq inhibit-startup-message t
-      initial-buffer-choice (concat (getenv "HOME") "/files/sync/org/inbox.org")
       display-time-24hr-format t
       select-enable-clipboard t)
 
@@ -98,6 +97,10 @@
 (setq org-clock-persist 'history)
 (org-clock-persistence-insinuate)
 
+(let ((org-folder (concat (getenv "HOME") "/files/sync/org")))
+  (setq org-agenda-files (directory-files-recursively org-folder "\\.org$")
+        initial-buffer-choice (concat org-folder "/inbox.org")))
+
 ;;; Configure packages
 (require 'use-package)