[英]What is the correct flymake configuration for emacs? (using Python.el)
I am using emacs as python IDE. 我使用emacs作为python IDE。 I am having flymake installed, however, it shows the following error whenever I work with a .py file 我已经安装了flymake,但是,每当我使用.py文件时,它都会显示以下错误
Error (flymake): Flymake: Failed to launch syntax check process 'pycheckers' with args (string-operations_flymake.py): Searching for program: no such file or directory, pycheckers. 错误(flymake):Flymake:无法启动带有args的语法检查过程'pycheckers'(string-operations_flymake.py):搜索程序:没有此类文件或目录,pycheckers。 Flymake will be switched OFF Flymake将关闭
My .emacs configuration for flymake is as follows: 我对flymake的.emacs配置如下:
;; flymake
(add-to-list 'load-path "~/.emacs.d/vendor")
(add-hook 'find-file-hook 'flymake-find-file-hook)
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pycheckers" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
(load "~/.emacs.d/vendor/flymake-cursor.el")
(global-set-key [f10] 'flymake-goto-prev-error)
(global-set-key [f11] 'flymake-goto-next-error)
Any suggestions on how to resolve this 有关如何解决此问题的任何建议
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.