简体   繁体   English

Windows 7下的Emacs,所有内容和Everything搜索工具

[英]Emacs, anything and the Everything search tool under Windows 7

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 . 我努力让一切有工作anything在Emacs 24.3.1在Windows 7最终,我想用anything-locate到浏览代码目录和子目录,如答案推荐这个问题 I did once, briefly, seem to have anything-locate working but I changed something and cannot get it back. 我曾经做过短暂的一次,似乎可以在anything-locate工作,但是我改变了一些东西,无法找回。

When I enter Mx anything-locate (or, using helm , Mx helm-locate ) I get a pattern: prompt but when I enter a search term I get an error message like this: 当我输入Mx anything-locate (或使用helmMx helm-locate )时,我得到一个pattern:提示,但是当我输入搜索词时,我得到如下错误消息:

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

定位

I assume but do not know for sure that this is related to es.exe which is the command line version of Everything. 假设但不确定是否与es.exe有关, es.exe是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)

...and I have edited everything.el so that the ...并且我已经编辑了everything.el以便

(defcustom everything-cmd "c:/Programme/Everything/es.exe" "Path to es.exe."

line now reads: 该行现在显示为:

(defcustom everything-cmd "~/.emacs.d/.emacs.d/elpa/everything/es.exe" "Path to es.exe."

(EDIT Please note that despite the "~/" convention used above, in reality the paths are fully qualified with c:/blah/blah/blah/.emacs.d/) (编辑请注意,尽管上面使用了“〜/”约定,但实际上路径完全由c:/blah/blah/blah/.emacs.d/限定。)

I expected this to allow Emacs to find es.exe . 我希望这可以使Emacs找到es.exe And yet it still throws the error message. 但是它仍然会引发错误消息。 Any thoughts on how to fix this? 有关如何解决此问题的任何想法?

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). 问题是emacs如何指定PATH与Windows如何进行设置之间存在冲突(类似于juanleon的建议)。 The solution was to remove all forms that modified the path in emacs, and instead just add es.exe to the windows path. 解决方案是删除所有修改了emacs中路径的表单,而仅将es.exe添加到Windows路径中。 es.exe is an extra download at the bottom of the voidtools download page, below the old versions, took me a while to find. es.exe是在voidtools下载页面底部(旧版本下方)的额外下载,我花了一段时间才找到。

It is possible that windows shell (whatever it is) does not know how to expand "~/" (even if emacs does understand it). Windows Shell(无论它是什么)可能都不知道如何扩展“〜/”(即使emacs确实可以理解)。

A very quick test would be to copy the es.exe in "c:\\es.exe" and then repeat the test with the proper change in the configuration of everything-cmd; 一个非常快速的测试是将es.exe复制到“ c:\\ es.exe”中,然后对everything-cmd的配置进行适当的更改来重复该测试; if it works then just use the whole path. 如果可行,则使用整个路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM