当我调用py execute region(绑定到C-C |)时,我从flymake get file name模式得到了一个错误,并屏蔽了“无效文件名”。还会出现名为/tmp/python-3434.py的void buffer。在
我的flymake设置:
(when (load "flymake" t)
(defun flymake-pylint-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 "epylint" (list local-file))))
(添加到列表“flymake允许的文件名掩码” '(“\.py\”flymake pylint init))) (添加hook‘python mode hook’flymake模式)
我遇到了同样的问题,并通过使emacs不加载传递给解释器的临时缓冲区的flymake来解决这个问题。我
我的Python flymake设置的相关部分:
相关问题 更多 >
编程相关推荐