问题
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