Running the Flymake mode in a text-mode console Emacs session, how can I tell Flymake to display its messages in the text console instead of trying to communicate with X?
Emacs 23 running on various environments, including Debian and Ubuntu.
I have flymake-gui-warnings-enabled
set to nil
, but when I flymake-display-err-menu-for-current-line
it complains:
X windows are not in use or not initialized
Yes, I know that; Emacs is running across an SSH connection without X. That's why I disabled GUI use by Flymake. How can I tell Flymake not to try using the GUI, and instead to say what it has to say in the Emacs windows?
A refinement of earlier solutions. Makes the error messages behave more like eldoc messages. Messages don't end up in the message buffer, messages don't flicker, and messages don't block other output. Uses lexically scoped variables rather than global variables.
Requires emacs 24. I believe the lexical binding comment must go at the top of your file.
I don't have an independent repository for this, but the most up to date version can be got from my emacs config on github.