ENH remove journal from org

This commit is contained in:
Nathan Dwarshuis 2024-03-03 10:20:03 -05:00
parent e27ecc5547
commit caaa0d4597
1 changed files with 6 additions and 7 deletions

View File

@ -1742,8 +1742,7 @@ Save all org buffers 1 minute before the hour, then commit whatever I saved.
(defun nd/org-commit-repos () (defun nd/org-commit-repos ()
"Commit org git repos automatically" "Commit org git repos automatically"
(let* ((journal-path (f-join org-directory "journal")) (let* ((cmd (format "autogit \"%s\"" org-directory)))
(cmd (format "autogit \"%s\" \"%s\"" org-directory journal-path)))
(async-shell-command cmd))) (async-shell-command cmd)))
;; TODO don't hardcode this name ;; TODO don't hardcode this name
@ -2419,11 +2418,11 @@ Prevent accidental refiling under tasks with done keywords
;; TODO this no work, although does work if var is global ;; TODO this no work, although does work if var is global
;; redfining the targets works for now ;; redfining the targets works for now
(add-hook 'org-agenda-mode-hook ;; (add-hook 'org-agenda-mode-hook
(lambda () ;; (lambda ()
(when (equal (buffer-name) "*Org Agenda(A)*") ;; (when (equal (buffer-name) "*Org Agenda(A)*")
(setq-local org-refile-targets ;; (setq-local org-refile-targets
'(("~/Org/journal/goals.org" :maxlevel . 9)))))) ;; '(("~/Org/journal/goals.org" :maxlevel . 9))))))
;; (lambda () (when (org-entry-get nil "GOAL") t)))))) ;; (lambda () (when (org-entry-get nil "GOAL") t))))))
;; (setq org-refile-targets '((nil :maxlevel . 9) ;; (setq org-refile-targets '((nil :maxlevel . 9)
;; ("~/Org/reference/idea.org" :maxlevel . 9) ;; ("~/Org/reference/idea.org" :maxlevel . 9)