parent
ce9162647d
commit
1456108d5b
1 changed files with 6 additions and 6 deletions
|
@ -12,12 +12,12 @@
|
|||
(add-to-list 'magic-mode-alist '(+org-journal-p . org-journal-mode))
|
||||
|
||||
(defun +org-journal-p ()
|
||||
"Wrapper around `org-journal-is-journal' to lazy load `org-journal'."
|
||||
(when-let (buffer-file-name (buffer-file-name (buffer-base-buffer)))
|
||||
(when (or (featurep 'org-journal)
|
||||
(if (or (featurep 'org-journal)
|
||||
(and (file-in-directory-p
|
||||
buffer-file-name (expand-file-name org-journal-dir org-directory))
|
||||
(require 'org-journal nil t)))
|
||||
(delq! '+org-journal-p magic-mode-alist 'assq)
|
||||
(org-journal-is-journal))))
|
||||
|
||||
;; `org-journal-dir' defaults to "~/Documents/journal/", which is an odd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue