Remove annoing flymake
This commit is contained in:
parent
6f0669788e
commit
07bb522b64
@ -44,15 +44,15 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.md$" . markdown-mode))
|
||||
|
||||
;; Python-mode
|
||||
(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 "pyflakes" (list local-file))))
|
||||
|
||||
(add-to-list 'flymake-allowed-file-name-masks
|
||||
'("\\.py\\'" flymake-pyflakes-init)))
|
||||
(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 "pyflakes" (list local-file))))
|
||||
;
|
||||
; (add-to-list 'flymake-allowed-file-name-masks
|
||||
; '("\\.py\\'" flymake-pyflakes-init)))
|
||||
;(add-hook 'find-file-hook 'flymake-find-file-hook)
|
||||
|
Loading…
Reference in New Issue
Block a user