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?
I've found the "tooltip" error messages plain annoying anyway so I have this in my
.emacsthat displaysflymakeerror messages in the minibuffer. This is something which I got off the net somewhere. It was calledflymake-cursor.el. Credit belongs to the chap who wrote it first. You don't need the pyflake bits which are specific to the Python tool I use as a flymake helper. The main function isshow-fly-err-at-pointwhich allows you to use your regular cursor to hover on a highlighted line for the message.