You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open Emacs and run calendar, I get the following error message. After a lot of troubleshooting, I found that when I run calendar, the system automatically loads my journal into the buffer, but it is in fundamental-mode. However, if I change org-journal-file-type from ‘monthly’ to ‘daily’, the problem disappears. I don’t understand why this is happening. Please help.
Describe the bug
When I open Emacs and run calendar, I get the following error message. After a lot of troubleshooting, I found that when I run calendar, the system automatically loads my journal into the buffer, but it is in fundamental-mode. However, if I change org-journal-file-type from ‘monthly’ to ‘daily’, the problem disappears. I don’t understand why this is happening. Please help.
Error Message:
Debugger entered--Lisp error: (void-function org-element-type) org-element-type(nil) org-fold-core-get-folding-spec(nil nil) org-at-heading-p(t) org-back-to-heading() org-journal--file->calendar-dates("/Users/felix/Dropbox/notes/Orgzly/journal/202501.o...") org-journal--dates-puthash("/Users/felix/Dropbox/notes/Orgzly/journal/202501.o...") org-journal--list-dates() org-journal-mark-entries() run-hooks(calendar-today-visible-hook) #f(compiled-function () #<bytecode -0x1ddfdbae0125bd7d>)() calendar-generate-window(1 2025) calendar-basic-setup(nil) calendar(nil) funcall-interactively(calendar nil) call-interactively(calendar record nil) command-execute(calendar record) execute-extended-command(nil "calendar" nil) funcall-interactively(execute-extended-command nil "calendar" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)
Screenshots
Desktop (please complete the following information):
Your Emacs Configuration
`
(use-package org
:init
(setq org-directory "~/Dropbox/org") ;設置 org 文件的默認目錄
(load (expand-file-name "capture-templates.el" salt-template-dir))
:config
; enable tempo
(require 'org-tempo)
(setq org-startup-indented t) ;自動縮進
(setq org-startup-folded t) ;默認折疊所有標題
(setq org-hide-leading-stars t) ;隱藏多餘的標題星號
;; org-agenda-files
(with-eval-after-load 'org
(add-to-list 'org-agenda-files "
/Dropbox/notes/Orgzly")/Dropbox/notes/Orgzly/journal"))(add-to-list 'org-agenda-files "
;TODO 關鍵字設置
(setq org-todo-keywords
'((sequence "TODO(t!)" "IN-PROGRESS(i!)" "|" "DONE(d!)" "CANCELLED(c@/!)")
(sequence "HOLD(h@/!)" "REVIEW(v@)" "|" "CANCELLED(c@/!)")
(sequence "NOTE(n!)" "IDEA(y!)" "|" "USED(u)")))
(setq org-refile-targets '((nil :maxlevel . 2) ; 允許 refile 到當前檔案
("~/Dropbox/notes/Orgzly/notes.org" :maxlevel . 2)))
(setq org-capture-templates capture-templates)
)
(use-package org-journal
:after org
:config
(setq org-journal-dir "~/Dropbox/notes/Orgzly/journal"
org-journal-date-format "%A, %d %B %Y"
org-journal-file-format "%Y%m.org"
org-journal-time-format "%H%M"
org-journal-file-type 'monthly)
)
`
The text was updated successfully, but these errors were encountered: