I've installed flake8 for flycheck to use to check my python syntax. I installed flake8 in cygwin, using the python interpreter shipped with cygwin, which results in a flake8
file in C:\cygwin64\bin
. The problem is, emacs seems to only respect exe files so if I (executable-find "flake8")
it yields nil
. I had the same problem when I enabled anaconda-mode, since cygwin has python2.7.exe
and python
in C:\cygwin64\bin
. I solved this by copy python2.7.exe
to python.exe
, but the flake8 problem can't be solved this way.
I vim /usr/bin/flake8
d, turns out it's really flake.py
with python code inside to run with python.
tl;dr: Generally the question is: How to make emacs aware of "excutables" that would normally run by python flake8.py
, node eslint.js
? (When I used eslint with flycheck for js-file syntax check, it just works, maybe there's the solution?)
Thanks in advance.
executable-find
uses its own "database" of locations to look at for executables. I believe the variable isexec-path
. Look at its current value. If it doesn't containC:\cygwin64\bin
,append-to-list
it. – wvxvw Oct 13 '16 at 13:30