-
Notifications
You must be signed in to change notification settings - Fork 51
Tips
Takafumi Arakaki edited this page Jul 3, 2012
·
3 revisions
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)