about summary refs log tree commit diff
path: root/users/sterni/emacs
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-02-26T21·06+0100
committerclbot <clbot@tvl.fyi>2022-02-26T22·33+0000
commit4d5459ef9344d277198fa3c14a04206ff4c417d9 (patch)
treef13d888f639b064c54506ae28a347b42577fdebe /users/sterni/emacs
parent20bdcdb8f5249d1441254555e9ded5453671ff59 (diff)
feat(sterni/emacs): set up org-agenda r/3872
Change-Id: Ic8373938cc9343e2fe0d561edf6c7b5f03c26358
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5331
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/emacs')
-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)