【发布时间】:2013-09-17 13:34:03
【问题描述】:
我正在努力让 Everything 在 Windows 7 上的 Emacs 24.3.1 中与 anything 一起使用。最终我想使用 anything-locate 来浏览代码目录和子目录,正如this question 的答案中所建议的那样。我曾经做过一次,简单地说,似乎 anything-locate 工作,但我改变了一些东西,无法恢复。
当我输入M-x anything-locate(或者,使用helm、M-x helm-locate)时,我收到pattern: 提示,但是当我输入搜索词时,我收到如下错误消息:
Locate
'es' is not recognized as an internal or external command,
operable program or batch file.
我假设但不确定这是否与es.exe 有关,这是 Everything 的命令行版本。在我的初始化文件中,我有这个:
(add-to-list 'load-path "~/.emacs.d/.emacs.d/elpa/everything")
(setq everything-ffap-integration nil)
(setq everything-cmd "~/.emacs.d/.emacs.d/elpa/everything/es.exe")
(require 'everything)
...我已经编辑了everything.el,以便
(defcustom everything-cmd "c:/Programme/Everything/es.exe" "Path to es.exe."
现在的行是:
(defcustom everything-cmd "~/.emacs.d/.emacs.d/elpa/everything/es.exe" "Path to es.exe."
(请注意,尽管上面使用了“~/”约定,但实际上路径完全符合 c:/blah/blah/blah/.emacs.d/)
我希望这能让 Emacs 找到 es.exe。然而它仍然抛出错误信息。有关如何解决此问题的任何想法?
【问题讨论】:
-
任何东西都已经死了一段时间了,你真的应该试试它的继任者Helm。
-
我看不到安装
Helm的简单方法,除非从 Git 安装。Anything已经够糟糕了…… -
Helm 在 Marmalade 和 MELPA 中有包。它还有一个 el-get 食谱。安装没有比这更容易了:-)
-
不幸的是,我的包多次失败 - 如果您想查看一个可以工作的包系统,请查看 R。但是,我今天再次尝试并设法将 helm 安装在之前它发出的位置。但是,使用
M-x helm-locate会给我与anything相同的错误消息('es' not recognized)。 -
es.exe 的路径是否正确?使用 Helm,我的初始化文件中有
(setq everything-cmd "C:/Program Files/Everything/es.exe"),然后设置参数(setq helm-c-locate-command "es %s -r %s")。
标签: emacs