我使用emacs作为python IDE。我已经安装了flymake,但是,每当我使用.py文件时,它都会显示以下错误



我的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)

有关如何解决此问题的任何建议

最佳答案

安装flycheck。应该开箱即用。

关于python - emacs的正确flymake配置是什么? (使用Python.el),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13894858/

10-10 02:48