emacs - 在Emacs启动期间运行我自己的代码

标签 emacs

假设我在~/bin/hello.el中有自己的elisp代码。~/.emacs文件包含以下代码,可在启动时运行hello.el

(add-to-list 'load-path "~/bin/elisp")
(require 'hello)
但是,我收到以下错误消息。

Warning (initialization): An error occurred while loading `/Users/smcho/.emacs':

error: Required feature `hello' was not provided


这怎么了

最佳答案

hello.el提供问候吗?它应该以(provide 'hello)开头。参见elisp manual(load "hello.el")有效吗?

关于emacs - 在Emacs启动期间运行我自己的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3349223/

相关文章:

bash - 更改 ls 命令的 emacs bash 颜色

emacs - 在保存某些文件类型(并且仅这些文件类型)时让 Emacs 取消制表符

emacs - 将启用相对行号添加到 init.el

emacs - 在 Emacs 中,如何使用 elisp 脚本中的 "Other-window"?

emacs lisp 以编程方式调用带有前缀参数的函数

emacs - 如何在 emacs org 模式下重新计算列的总和?

emacs - 如何在 org-mode 中为 noweb 引用创建超链接

unix - Emacs 无法保存自定义 - 初始化文件未完全加载

python - pandas 打印 `tput: unknown terminal "emacs"`

emacs - 在 Emacs 中重新定义主模式前缀键