org-journal
org-journal copied to clipboard
org-journal-mode loaded late
Describe the bug
Journal mode only loads when file opened after journal-mode has been loaded manually at least one time.
To Reproduce
- Open a file under
org-journal-dir
usingM-x find-file
- File is loaded automatically with
org-mode
as major mode -
M-x org-journal-mode
- Kill the buffer
- Open another file under
org-journal-dir
- File is loaded with
org-journal-mode
as major mode
Expected behavior
org-journal-mode
should load immediately the first time. Maybe it needs to be loaded with org-mode somehow in use-package (configuration error?).
Desktop (please complete the following information):
- OS: macOS
- Emacs Version: GNU Emacs 28.1
Emacs Configuration
(use-package org
:straight (org-plus-contrib
:type git
:repo "https://code.orgmode.org/bzg/org-mode.git"
:local-repo "org"
:depth full
:pre-build '(straight-recipes-org-elpa--build)
:build (:not autoloads)
:files (:defaults
"lisp/*.el"
("etc/styles/" "etc/styles/*")
"contrib/lisp/*.el"))
:bind (("C-c l" . org-store-link)
("C-c a" . org-agenda)
("C-c c" . org-capture))
:init
(unless (boundp 'org-directory) (setq org-directory (file-name-as-directory "~/Desktop/org"))))
(use-package org-journal
:straight (:host github :repo "bastibe/org-journal")
:bind (("C-c j" . org-journal-new-entry))
:init
(setq org-journal-dir (concat org-directory "/journal"))
(setq org-journal-file-format "%Y%m%d.org")
(setq org-journal-date-format "%A, %d/%m/%Y"))