ispell-look-command在windows下not found的问题

在网上找了一个look.c生成了look.exe,也加到path里面了,现在在cmd里面可以执行look了,但是怎么把这个look绑定到ispell-look-command上面,

(defcustom ispell-look-command
  (cond ((file-exists-p "/bin/look") "/bin/look")
	((file-exists-p "/usr/local/bin/look") "/usr/local/bin/look")
	((file-exists-p "/usr/bin/look") "/usr/bin/look")
    ((file-exists-p "C:/Users/henry/AppData/Roaming/bin/look.exe") "C:/Users/henry/AppData/Roaming/bin/look.exe")
	(t "look"))
  "Name of the look command for search processes.This must be an absolute file name."
    :type 'file
    :group 'ispell)

这是配置ispell-look-command的代码,不知道该怎么加上,上面最后一个file-esist-p是我加的,没有效果。

setq 设置。至于路径,好像 Windows 用的是 \ 间隔?(没怎么用过 Windows,不清楚)

其实为了保证兼容两种都可以。

用setq不知道值应该填什么,我填look.exe的路径没有生效,还是not found

可以M-x ielm进repl然后执行(file-exists-p "path-to-try")把各种能想到的路径写法填进双引号,看看哪个是t

执行了以后路径是没问题的,但是我设置ispell-look-command为这个路径以后,在text-mode输入英文的时候依然不能补全,还是报这个not found的错,很是郁闷呀,windows用的非常难受啊。

(setq ispell-look-command "C:/Users/henry/AppData/Roaming/bin/look.exe")

不清楚如何用 setq 修改变量的值的话,自己参考手册:(info “(emacs) Examining”)