Here’s the info about setting up the journaling system.
The entry for the journaling template I use is this:
(setq org-capture-templates
(quote (
("j" "Journal"
plain (file+datetree (concat org-directory "journal.org")) | ;; | |
| ;; Allow automatically handing of created/expired meta data. | |
| ;; | |
| (require 'org-expiry) | |
| ;; Configure it a bit to my liking | |
| (setq | |
| org-expiry-created-property-name "CREATED" ; Name of property when an item is created | |
| org-expiry-inactive-timestamps t ; Don't have everything in the agenda view | |
| ) |
| # Regardless of how our topology looks, we'll need the local interface | |
| auto lo | |
| iface lo inet loopback | |
| # Configuration basics taken from: | |
| # http://www.kernel.org/doc/Documentation/networking/bonding.txt | |
| # Define the bonding master, which is ideally our only interface to the outside world | |
| # - define slaves as none initially, this helps with booting faster | |
| # - the primary line makes most sense here, but is not enough | |
| # - set the interface check interval to 100ms |
| .env |
| (use-package org-journal | |
| :after org | |
| :bind | |
| (("C-c j" . 'org-journal-new-entry)) | |
| :init | |
| ;; The expand-file-name is needed, which is odd, because for single | |
| ;; files this is not needed. | |
| (setq org-journal-dir (expand-file-name (concat org-directory "journal/")) | |
| ;; Bring our config to every journal file | |
| org-journal-file-header "#+SETUPFILE: ~/.emacs.d/org-config.org" |
| # Rule to run a script when yubikey is inserted/removed | |
| # Mostly to get gpg and ssh to behave properly | |
| # There are signals this will be patched in gpg so this may be | |
| # not needed anymore. | |
| ACTION=="remove|add|change", \ | |
| ENV{ID_VENDOR_ID}=="1050",ENV{ID_MODEL_ID}=="0116",ENV{ID_SERIAL_SHORT}=="0003022097", \ | |
| RUN+="/usr/local/bin/yubikey-changed" |
| ;; Show a notification when a push has been completed | |
| (require 'notifications) | |
| (defun notify-push (result) | |
| (notifications-notify | |
| :title "Push complete" | |
| :body (format "Org-mobile-push: %s" result) | |
| ) | |
| ) | |
| ;; Fork the work of pushing to mobile |
| Debugger entered--Lisp error: (quit) | |
| org-check-agenda-file("/home/mrb/dat/org/journal/20200728.org") | |
| org-agenda-prepare-buffers(("/home/mrb/dat/org/journal/20200728.org")) | |
| org-map-entries(#f(compiled-function () #<bytecode 0x1e0c29938002>) "+carryover|+TODO=\"TODO\"") | |
| org-journal-carryover() | |
| org-journal-new-entry((4)) | |
| funcall-interactively(org-journal-new-entry (4)) | |
| call-interactively(org-journal-new-entry nil nil) | |
| command-execute(org-journal-new-entry) |
| {'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997641.0} | |
| {'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997642.0} | |
| {'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997643.0} | |
| {'full_text': 'BTC: $7689.26', 'color': '#FF0000', 'cached_until': 1587997644.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997645.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997646.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997647.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997649.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997650.0} | |
| {'full_text': 'BTC: $7689.27', 'color': '#FF0000', 'cached_until': 1587997651.0} |