首页 > 解决方案 > 符号的函数定义为 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”,它返回 with-eval-after-load 加载钩子 - GNU Emacs Lisp 参考手册

后加载是个人定义的功能吗?

标签: elisp

解决方案


实际上,这不是标准库中定义的符号。您克隆的 repo 将其定义为with-eval-after-loadin的可移植别名,init-utils但当然您必须先加载此定义,然后才能使用它。可能会查看 repo 的安装和使用说明。


推荐阅读