Fix: contrib/journal: `buffer-file-name' is nil in *Capture* buffer
This commit is contained in:
parent
65dacd1016
commit
b8de456a73
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
(defun +org-journal-mode-maybe ()
|
||||
"Activate `org-journal-mode', maybe."
|
||||
(and (eq major-mode 'org-mode)
|
||||
(stringp buffer-file-name)
|
||||
(string-match-p org-journal-file-pattern buffer-file-name)
|
||||
(let ((org-mode-hook (remq '+org-journal-mode-maybe org-mode-hook)))
|
||||
(org-journal-mode))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue