[英]What is the correct flymake configuration for emacs? (using Python.el)
我使用emacs作為python IDE。 我已經安裝了flymake,但是,每當我使用.py文件時,它都會顯示以下錯誤
錯誤(flymake):Flymake:無法啟動帶有args的語法檢查過程'pycheckers'(string-operations_flymake.py):搜索程序:沒有此類文件或目錄,pycheckers。 Flymake將關閉
我對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 。 應該開箱即用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.