From 78eaad0b0f26f6b91ec231479b87e25bea675815 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 24 Feb 2025 20:57:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(config)=20Re-configure=20org-journ?= =?UTF-8?q?al?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/config.org b/config.org index 14ef3c3..9047dfd 100644 --- a/config.org +++ b/config.org @@ -1623,15 +1623,26 @@ Until now I did not think that I needed to keep a (personal) journal. But since #+begin_src emacs-lisp (use-package org-journal - :config (setq org-journal-dir "~/org/journal" - org-journal-file-type 'monthly - org-journal-find-file 'find-file - org-journal-file-format "%Y-%m-%d.org" - org-journal-date-format "%A, %Y-%m-%d") - :bind (("C-c j j" . 'org-journal-new-entry) - ("C-c j s" . 'org-journal-new-scheduled-entry) - ("C-c j o" . 'org-journal-open-current-journal-file) - ("C-c j w" . 'mmk2410/org-journal-worktime))) + :config + (defun mmk2410/org-journal-new-entry () + (interactive) + (org-journal-new-entry 1)) + (setq mmk2410/org-journal-date-template-file "~/org/journal/template.org") + (setq mmk2410/org-journal-date-template + (with-temp-buffer + (insert-file-contents mmk2410/org-journal-date-template-file) + (buffer-string))) + (setq org-journal-dir "~/org/journal" + org-journal-file-type 'monthly + org-journal-find-file-fn 'find-file + org-journal-file-format "%Y-%m.org" + org-journal-date-prefix "" + org-journal-date-format mmk2410/org-journal-date-template + org-journal-time-prefix "- " + org-journal-time-format "" + org-journal-encrypt-journal t + org-journal-enable-agenda-integration nil) + :bind (("C-c j j" . 'mmk2410/org-journal-new-entry))) #+end_src Part of my workflow with org journal is in the meantime to clock the time I work in the different entries using =org-clock=. At the end of the day I like to create a summary for that. Currently the process for this includes a table with to formulas I created some time ago and copy every day from the previous one (while the first formula calculates the times the second is just there to clean the fields). While this is certainly improvable in many ways the only thing that really annoyed me was the calculation of the time. Since I try to follow the 52:17 methodology I have to add many numbers around 52 up to get the usual hour:minutes format. Although this is certainly a good brain training it has been shown that the calculation is very error-prone and calculating this twice does not make it more fun.