Commit c800000aa3b6

Vincent Demeester <vincent@sbr.pm>
2025-07-30 10:28:14
tools/emacs: add an external habits.org file
The reason for it is to use it on iOS with Flat Habits. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 16b4765
Changed files (1)
tools
emacs
tools/emacs/init.el
@@ -17,6 +17,8 @@
   "`org-mode' inbox file, where we collect entries to be triaged.")
 (defconst org-todos-file (expand-file-name "todos.org" org-directory)
   "`org-mode' file for TODOs.  This is the main file for the org angenda entries.")
+(defconst org-habits-file (expand-file-name "habits.org" org-directory)
+  "`org-mode' file for habits.  This is the file for habits that I need to share elsewhere, with Flat habits on iOS for example.")
 (defconst org-journal-file (expand-file-name "20250620T144103--journal__journal.org" org-notes-directory)
   "`org-mode' journal file, for journal-ling.")
 (defconst org-archive-dir (expand-file-name "archive" org-directory)
@@ -976,7 +978,7 @@ minibuffer, even without explicitly focusing it."
   (org-priority-default 4)
   (org-list-demote-modify-bullet '(("+" . "-") ("-" . "+")))
   (org-agenda-file-regexp "^[a-zA-Z0-9-_]+.org$")
-  (org-agenda-files `(,org-inbox-file ,org-todos-file))
+  (org-agenda-files `(,org-inbox-file ,org-todos-file ,org-habits-file))
   (org-refile-targets '((org-agenda-files :maxlevel . 3)))
   (org-refile-use-outline-path 'file)
   (org-refile-allow-creating-parent-nodes 'confirm)