Fix Org capture file targets

This commit is contained in:
Fabio Scotto di Santolo
2026-04-21 09:42:45 +02:00
parent 30eb6480a8
commit 9f77819fb1

View File

@@ -6,6 +6,12 @@
;; Setting default directory for Org files. ;; Setting default directory for Org files.
(setq org-directory "~/Org") (setq org-directory "~/Org")
(defvar org-notes-file (expand-file-name "notes.org" org-directory)
"Default Org notes file.")
(defvar org-calendar-file (expand-file-name "calendar.org" org-directory)
"Default Org calendar file.")
(use-package org (use-package org
:init :init
(setq org-clock-mode-line-total 'today (setq org-clock-mode-line-total 'today
@@ -30,10 +36,10 @@
(file org-default-notes-file) (file org-default-notes-file)
"* 🆕 %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n") "* 🆕 %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
("n" "Note" entry ("n" "Note" entry
(file (expand-file-name "notes.org" org-directory)) (file org-notes-file)
"* %U %?\n") "* %U %?\n")
("e" "Event" entry ("e" "Event" entry
(file (expand-file-name "calendar.org" org-directory)) (file org-calendar-file)
"* %?\nSCHEDULED: %^T\n"))) "* %?\nSCHEDULED: %^T\n")))
:config :config
(add-hook 'org-mode-hook 'org-indent-mode)) (add-hook 'org-mode-hook 'org-indent-mode))