Fix #2938: wrong-type-argument stringp error on org-journal
This commit is contained in:
parent
a36afa5136
commit
3a5ef316fc
2 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
"Activate `org-journal-mode', maybe."
|
||||
(and (eq major-mode 'org-mode)
|
||||
(stringp buffer-file-name)
|
||||
(stringp org-journal-file-pattern)
|
||||
(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