mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
Fix #2938: wrong-type-argument stringp error on org-journal
This commit is contained in:
@ -30,6 +30,7 @@
|
|||||||
"Activate `org-journal-mode', maybe."
|
"Activate `org-journal-mode', maybe."
|
||||||
(and (eq major-mode 'org-mode)
|
(and (eq major-mode 'org-mode)
|
||||||
(stringp buffer-file-name)
|
(stringp buffer-file-name)
|
||||||
|
(stringp org-journal-file-pattern)
|
||||||
(string-match-p org-journal-file-pattern 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)))
|
(let ((org-mode-hook (remq '+org-journal-mode-maybe org-mode-hook)))
|
||||||
(org-journal-mode))))
|
(org-journal-mode))))
|
||||||
|
Reference in New Issue
Block a user