Fix mo-git-blame/pyflakes issue.
This commit is contained in:
parent
efa71e12f5
commit
773625778d
@ -1 +1 @@
|
|||||||
Subproject commit 8e09525a0f2f38cf249a70896c9e3d8815268b26
|
Subproject commit d78de88302dd6fec15f5887222e63ab41eb76ecf
|
4
init.el
4
init.el
@ -173,7 +173,7 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
|
|
||||||
(defun flymake-pylint-init ()
|
(defun flymake-pylint-init ()
|
||||||
(let* ((temp-file (flymake-init-create-temp-buffer-copy
|
(let* ((temp-file (flymake-init-create-temp-buffer-copy
|
||||||
'flymake-create-temp-inplace))
|
'flymake-create-temp-inplace))
|
||||||
(local-file (file-relative-name
|
(local-file (file-relative-name
|
||||||
temp-file
|
temp-file
|
||||||
(file-name-directory buffer-file-name))))
|
(file-name-directory buffer-file-name))))
|
||||||
@ -183,7 +183,7 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
|
|
||||||
; Load flymake on non-temp buffers
|
; Load flymake on non-temp buffers
|
||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
(lambda () (unless (eq buffer-file-name nil) (flymake-mode 1))))
|
(lambda () (unless (or (eq buffer-file-name nil) (eq (file-name-directory buffer-file-name) nil)) (flymake-mode 1))))
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; Python
|
;; Python
|
||||||
|
Loading…
Reference in New Issue
Block a user