Emacs,任何东西和Windows 7下的所有搜索工具 [英] Emacs, anything and the Everything search tool under Windows 7

查看:225
本文介绍了Emacs,任何东西和Windows 7下的所有搜索工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力使一切 任何 在Emacs 24.3.1在Windows 7上。最终我想要使用 anything-locate 浏览代码目录和子目录,如这个问题。我曾经做过,简单地说,似乎有任何东西 - 找到工作,但我改变了一些东西,不能收回。

I am struggling to get Everything working with anything in Emacs 24.3.1 on Windows 7. Ultimately I want to use anything-locate to browse code directories and subdirectories, as recommended in answers to this question. I did once, briefly, seem to have anything-locate working but I changed something and cannot get it back.

当我输入 Mx any-locate (或使用 helm Mx helm-locate )我得到一个模式:提示,但是当我输入搜索字词时,我会收到如下错误消息:

When I enter M-x anything-locate (or, using helm, M-x helm-locate) I get a pattern: prompt but when I enter a search term I get an error message like this:

Locate
'es' is not recognized as an internal or external command,
operable program or batch file.

我假设,但不知道这是否与 es.exe有关这是全部的命令行版本。在我的init文件中,我有这样的:

I assume but do not know for sure that this is related to es.exe which is the command line version of Everything. In my init file I have this:

(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 ,以便

...and I have edited everything.el so that the

(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 /)

(EDIT Please note that despite the "~/" convention used above, in reality the paths are fully qualified with c:/blah/blah/blah/.emacs.d/)

我预计这可以让Emacs找到 es.exe ,但仍然会抛出错误消息。有关如何解决此问题的任何想法?

I expected this to allow Emacs to find es.exe. And yet it still throws the error message. Any thoughts on how to fix this?

推荐答案

我知道这是老旧的,但是当我遇到同样的舵手问题时,我发现了这个问题,所以这可能是有用的。
问题是emacs如何指定PATH之间的冲突,以及Windows如何(类似于juanleon的建议)。
解决方案是删除在emacs中修改路径的所有表单,而只是将es.exe添加到Windows路径。
es.exe是在voidtools下载页面底部的额外下载,在旧版本下面,花了一段时间找到。

I know this is old, but I found this question when I ran into the same problem with helm, so it might be useful. The problem was a conflict between how emacs specifies PATH, and how windows does it (similar to juanleon's suggestion). The solution was to remove all forms that modified the path in emacs, and instead just add es.exe to the windows path. es.exe is an extra download at the bottom of the voidtools download page, below the old versions, took me a while to find.

这篇关于Emacs,任何东西和Windows 7下的所有搜索工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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