cannot open load dired-details

2019-01-28 12:40发布

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

标签: emacs dired
1条回答
爷、活的狠高调
2楼-- · 2019-01-28 13:35

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
查看更多
登录 后发表回答