符号的函数定义无效:加载后'
symbol's function definition is void: after-load'
克隆代码后
emacs.d/init-org.el at 9bb862b3d5f95d66506693cf1ebc685bb79d1080 · purcell/emacs.d
到个人配置,
;;; Org clock
;; Save the running clock and all clock history when exiting Emacs, load it on startup
(after-load 'org
(org-clock-persistence-insinuate))
(setq org-clock-persist t)
(setq org-clock-in-resume t)
;; Save clock data and notes in the LOGBOOK drawer
(setq org-clock-into-drawer t)
;; Save state changes in the LOGBOOK drawer
(setq org-log-into-drawer t)
;; Removes clocked tasks with 0:00 duration
(setq org-clock-out-remove-zero-time-clocks t)
;; Show clock sums as hours and minutes, not "n days" etc.
(setq org-time-clocksum-format
'(:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t))
提示`symbol的函数定义为void: after-load'
搜索关键字“afterf-load”,return with-eval-after-load Hooks for Loading - GNU Emacs Lisp Reference Manual
after-load是个人定义的函数吗?
确实,这不是标准库中定义的符号。您克隆的 repo 将此定义为 with-eval-after-load
in init-utils
的可移植别名,但当然您必须先加载此定义才能使用它。可能会查看存储库的安装和使用说明。
克隆代码后
emacs.d/init-org.el at 9bb862b3d5f95d66506693cf1ebc685bb79d1080 · purcell/emacs.d
到个人配置,
;;; Org clock
;; Save the running clock and all clock history when exiting Emacs, load it on startup
(after-load 'org
(org-clock-persistence-insinuate))
(setq org-clock-persist t)
(setq org-clock-in-resume t)
;; Save clock data and notes in the LOGBOOK drawer
(setq org-clock-into-drawer t)
;; Save state changes in the LOGBOOK drawer
(setq org-log-into-drawer t)
;; Removes clocked tasks with 0:00 duration
(setq org-clock-out-remove-zero-time-clocks t)
;; Show clock sums as hours and minutes, not "n days" etc.
(setq org-time-clocksum-format
'(:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t))
提示`symbol的函数定义为void: after-load'
搜索关键字“afterf-load”,return with-eval-after-load Hooks for Loading - GNU Emacs Lisp Reference Manual
after-load是个人定义的函数吗?
确实,这不是标准库中定义的符号。您克隆的 repo 将此定义为 with-eval-after-load
in init-utils
的可移植别名,但当然您必须先加载此定义才能使用它。可能会查看存储库的安装和使用说明。