How can I check the syntax of Python code in Emacs without actually executing it?

后端 未结 5 2057
醉话见心
醉话见心 2021-02-01 23:28

Python\'s IDLE has \'Check Module\' (Alt-X) to check the syntax which can be called without needing to run the code. Is there an equivalent way to do this in Emacs instead of ru

5条回答
  •  心在旅途
    2021-02-01 23:52

    You can use pylint, pychecker, pyflakes etc. from Emacs' compile command (M-x compile).

    Hint: bind a key (say, F5) to recompile.

提交回复
热议问题