When opening .js files, js2-mode and, subsequently, flymake-js is automatically loaded. But flymake unloads right ahead with the message
Toggling flymake-mode off; better pass an explicit argument.
However, when enabling it manually, using M-x flymake-mode
, it keeps
activated. Has anybody encountered similar behavior and has fixed it?
My setup: I followed the instructions on emacswiki to set up Flymake to work with the most recent js2-mode with a little modification:
(add-hook 'js2-mode-hook '(lambda () (flymake-js-load)))
instead of
(add-hook 'javascript-mode-hook '(lambda () (flymake-js-load)))