I'm trying to integrate Ack in Emacs. All is fine on Linux, but I need to make it work on Windows too.
My ack
is already installed (somewhere on %PATH%) and working correctly .
Rather, I should say my ack.pl
is working correctly because Windows relies on file extensions to know how to deal with files. I used the file association explained here
Within emacs though, there is something I can't get to work.
ack.el for example, tries to locate ack using
(executable-find "ack")
On Windows, however, exec-suffixes
is set to (".exe" ".com" ".bat" ".cmd" ".btm" "")
by default, so of course it doesn't find my ack.pl
Naively I was hoping that the below would work:
(add-to-list 'exec-suffixes ".pl")
(executable-find "ack")
But it doesn't do the trick an returns nil.... The first question is: why is that ? How to make it work ?
And the second question perhaps: is there a better way to integrate Ack in Emacs on Windows ?
Thanks
Edit: I'm using the latest and greatest Emacs 27.1