Adding Subdirectories to Load Path

折月煮酒 提交于 2019-12-03 02:03:28

You're so close...

(let ((default-directory "~/.emacs.d/plugins/"))
  (normal-top-level-add-subdirs-to-load-path))

normal-top-level-add-subdirs-to-load-path works off the current directory, which you can set via the variable default-directory - not base like you tried.

Ben Hyde

You might investigate the role of the subdirs.el files during startup. It is a good way get subdirectories into your load-path.

For example, much of the default load-path arises as a consequence of the files discovered by this command:
find /usr -name subdirs.el

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!