Skip to content
Takafumi Arakaki edited this page Jul 3, 2012 · 3 revisions

Tips/Troubleshooting

Flymake ("Invalid file-name" error)

You can get "Invalid file-name" error if you have something like the following in your Emacs setting.

(add-hook 'python-mode-hook 'flymake-find-file-hook)  ; or
(add-hook 'python-mode-hook 'flymake-mode)

This may solves your problem:

(add-hook 'python-mode-hook (lambda () (if (buffer-file-name)
                                           (flymake-mode))))

See also: Issue #12: mumamo compatibility problems with emacs-for-python · tkf/emacs-ipython-notebook (thanks to @gabrielelanaro)

Clone this wiki locally