cannot open load dired-details

烂漫一生 提交于 2019-11-28 09:49:39

问题


I just installed the emacs package dired-details from inside emacs via

M-x package-list-packages

clicked on the package name and then install in the newly opened buffer.

Then I put those lines into my .emacs:

(require 'dired-details)
(setq-default dired-details-hidden-string ">---< ")
(dired-details-install)

When I restart emacs, I get the following error:

File error: Cannot open load file, dired-details

The interesting thing is, that when I mark the code region above and apply

M-x eval-region

everything works as expected.

emacs --version
>> GNU Emacs 24.3.1

package version:

dired-details-20130328.1119

回答1:


Packages you installed with package.el need to be initialized if you want to access them during emacs initialization.

Add the line

(package-initialize)

to the very beginning of your .emacs .

Also follow phil's recommendation and see the variable

package-enable-at-startup


来源:https://stackoverflow.com/questions/17512884/cannot-open-load-dired-details

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