如何在spacemacs里基于ivy插件集成everything

请教如何在spacemacs里基于ivy插件集成everything的搜索。最好能把步骤说清楚。因为步骤我大概能知道,但具体细节上我不知道怎么操作

Windows 下 emacs,everything 以及 ivy 看了下 counsel-locate 集成了?确认 Emacs 能找到 es.exe (executable-find "es.exe")

感谢回复。我把 es.exe所在目录加入到环境变量了,但是在调用counsel-locate 的时候,输入完文件名,emacs下方提示 error code 8,大哥,你的这条命令能不能详细说下怎么集成到spacemacs里头,我是新手,不太清楚具体的细节。(executable-find “es.exe”)

你先检查一下变量 counsel-locate-cmd 的值 (spc-h-d-v 或者 M-x describe-variable),如果是 counsel-locate-cmd-es 按理说没啥问题,如果不是,说明 Emacs 没有找到 es.exe,也即 (executable-find "es.exe") 返回 nil

(executable-find "es.exe") 是用来判断 Emacs 能否找到 es.exe,运行就是 M-x eval-expression (M-:) 粘贴这段然后回车看返回结果。或者任一一个 buffer 内在右括号处 C-x C-e 运行(这些应该基础教程都有,你需要找找)

非常感谢,我已经解决了。

(add-to-list 'process-coding-system-alist '("es" gbk . gbk))
(setq consult-locate-args "es.exe -i -p -r")

哦看错了,这是consult的。 不过第一个process-coding那个在需要搜索中文路径的时候有用。