diff --git a/emacs-for-python b/emacs-for-python index 8e09525a..d78de883 160000 --- a/emacs-for-python +++ b/emacs-for-python @@ -1 +1 @@ -Subproject commit 8e09525a0f2f38cf249a70896c9e3d8815268b26 +Subproject commit d78de88302dd6fec15f5887222e63ab41eb76ecf diff --git a/init.el b/init.el index 4d2e8cab..ddb97128 100644 --- a/init.el +++ b/init.el @@ -173,7 +173,7 @@ Return a list of installed packages or nil for every package not installed." (defun flymake-pylint-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy - 'flymake-create-temp-inplace)) + 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (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 (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