无法打开load dired-details [英] cannot open load dired-details

查看:123
本文介绍了无法打开load dired-details的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚从emacs内部通过

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.

然后我把这些行放入我的 .emacs

Then I put those lines into my .emacs:

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

我重新启动 emacs ,我收到以下错误:

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

一切都符合预期。

emacs --version
>> GNU Emacs 24.3.1

包版本:

dired-details-20130328.1119


推荐答案

如果要在emacs初始化期间访问它们,则需要初始化您使用package.el安装的软件包。

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

添加行

(package-initialize)

到.emacs的开头。

to the very beginning of your .emacs .

还要遵循phil的建议,看看变量

Also follow phil's recommendation and see the variable

package-enable-at-startup

这篇关于无法打开load dired-details的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆