[英]Using Everything search with Emacs/Anything under Windows
[英]Emacs, anything and the Everything search tool under Windows 7
我努力讓一切有工作anything
在Emacs 24.3.1在Windows 7最終,我想用anything-locate
到瀏覽代碼目錄和子目錄,如答案推薦這個問題 。 我曾經做過短暫的一次,似乎可以在anything-locate
工作,但是我改變了一些東西,無法找回。
當我輸入Mx anything-locate
(或使用helm
, Mx helm-locate
)時,我得到一個pattern:
提示,但是當我輸入搜索詞時,我得到如下錯誤消息:
Locate
'es' is not recognized as an internal or external command,
operable program or batch file.
我假設但不確定是否與es.exe
有關, 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
。 但是它仍然會引發錯誤消息。 有關如何解決此問題的任何想法?
我知道這很老,但是當我遇到同樣的頭盔問題時,我發現了這個問題,因此它可能會很有用。 問題是emacs如何指定PATH與Windows如何進行設置之間存在沖突(類似於juanleon的建議)。 解決方案是刪除所有修改了emacs中路徑的表單,而僅將es.exe添加到Windows路徑中。 es.exe是在voidtools下載頁面底部(舊版本下方)的額外下載,我花了一段時間才找到。
Windows Shell(無論它是什么)可能都不知道如何擴展“〜/”(即使emacs確實可以理解)。
一個非常快速的測試是將es.exe復制到“ c:\\ es.exe”中,然后對everything-cmd的配置進行適當的更改來重復該測試; 如果可行,則使用整個路徑。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.