emacs

1.添加自定义路径

在自定义完org-mode.el后,想在init.el中加载org-mode.el:

(setq load-path (cons "~/.emacs.d" load-path))
(require 'org-mode)

但运行emacs时一直报错,即org-mode加载失败。

error: Required feature `org-mode' was not provided

 在org-mode.el末尾添加

(provide 'org-mode)

启动emacs,成功。

 

另一种方法是直接load:

(load-file "~/.emacs.d/org-mode.el")

 

posted @ 2013-10-01 10:06  小生一直跑  阅读(293)  评论(0)    收藏  举报