elisp - 符号的函数定义为 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 参考手册
后加载是个人定义的功能吗?
解决方案
实际上,这不是标准库中定义的符号。您克隆的 repo 将其定义为with-eval-after-load
in的可移植别名,init-utils
但当然您必须先加载此定义,然后才能使用它。可能会查看 repo 的安装和使用说明。
推荐阅读
- javascript - 使用jquery Click功能的多个/嵌套选项卡不起作用
- ios - 如何解决 AssetsPickerController iOS 中 PHImageManager 的空资产问题?
- node.js - 将自定义错误从 Node/Express 发送到 Angular
- c++ - 如何创建一个新类来继承 ostream 并将其用作 cout 但带锁
- c# - 如何调用接受 Action 的方法
连同 ISomeInterface 的方法 - c# - FingerPrint Reader - 从 C# 代码创建事件处理程序到 C++ 的问题
- python-3.x - 如何从提取的文本中仅打印特定数据?
- javascript - 是否可以使用 javascript 将文件保存到特定目录?
- javascript - 显示 NaN 输出的 Js 表达式
- php - 根据用户的时区顺序显示具有不同时区的日期时间