Questions tagged [flymake]

Flymake is a minor editing mode for Emacs that performs on-the-fly syntax checks on the contents of your current buffer as you edit it, highlighting errors and warnings against the lines they occur on.

Flymake currently has in-built support for C/C++, Java, XML, Perl, PHP and Tex, there are also plugins available for Python and Ruby.

Some useful places to get started:

Flymake mode has been bundled with Emacs since v23, prior to that you needed to manually install it.

74 questions
2
votes
1 answer

emacs 23.4.1/latex/flymake-mode: can't find master file

I'm having some problems with flymake-mode when editing latex files in emacs 23.4.1. First, when I start the mode I see Flymake:! in the mode line. The manual tells me this is because "Flymake was unable to find the master file for the current…
jrm
  • 727
  • 5
  • 18
2
votes
2 answers

Emacs flymake prevents loading of files when directory is not writeable

When I open a file in a directory that is not writeable I get Opening output file: Permission denied, /path/to/file At the same time the file is not loaded. When I repeat the find-file command, the file is loaded fine the second time. The…
Peer Stritzinger
  • 8,232
  • 2
  • 30
  • 43
2
votes
4 answers

Flymake complains X is not available even when configured not to use X

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…
bignose
  • 30,281
  • 14
  • 77
  • 110
2
votes
2 answers

flymake fails with "Wrong type argument: symbolp, (utf-8)"

I'm trying to get flymake to work, but when I run flymake-mode, I get the following error switched OFF Flymake mode for buffer TdDisassemblerIde.cpp due to fatal status \ PROCERR, warning Failed to launch syntax check process 'make' with args (-s -C…
JesperE
  • 63,317
  • 21
  • 138
  • 197
2
votes
1 answer

Emacs elpy Flymake can't find pyflakes even though pyflake has been installed by pip

After using macports pip-2.7 to install pyflakes, I can run it manually from the pip installation directory using the command line like: python /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyflakes…
daj
  • 6,962
  • 9
  • 45
  • 79
2
votes
1 answer

Flymake quits right ahead after loading with js2-mode

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…
wnrph
  • 3,293
  • 4
  • 26
  • 38
2
votes
1 answer

ghc/flymake hangs on preprocessor directives

I'm using flymake(-ghc) on emacs (prelude setup, before anybody wonders, no extra configuration) for a yesod project which has some #if's here and there by default. All good apart from the fact that flymake shows this…
marco
  • 806
  • 1
  • 7
  • 17
2
votes
0 answers

Emacs HTML5 flymake?

I am using nxhtml-mode to edit html files. Recently, I start to use HTML5 markups such as
and
. Flymake throws errors for those tags. Now, I am using tidy for html validation. The setting is like below: (defun flymake-html-init…
user367942
  • 251
  • 1
  • 3
  • 8
2
votes
2 answers

How can I highlight unmatched HTML tags in Emacs?

I'd really like to catch unbalanced HTML tags as I edit HTML snippets inside Emacs. For example, JSFiddle offers this: I've found that there's also a wrapper for weblint but that only support HTML 4. flycheck support HTML checking using tidy, but…
Wilfred Hughes
  • 29,846
  • 15
  • 139
  • 192
2
votes
1 answer

Using One Key for Both flymake And flyspell

I am using flymake with pyflakes to check my python code and flyspell to check my strings and comments. I want to have one function which will go to the next error, or will display information about the error if currently at an error. How would I…
Nikwin
  • 6,576
  • 4
  • 35
  • 43
2
votes
1 answer

Receiving Flymake error in Windows & Ubuntu Emacs for PHP

I am receiving this error. Error (flymake): Flymake: Failed to launch syntax check process 'php' with args (-f test_flymake.php -l): Searching for program: no such file or directory, php. Flymake will be switched OFF I am on windows 7 with emacs 24…
sayth
  • 6,696
  • 12
  • 58
  • 100
2
votes
1 answer

Syntax highlighting conflicts with flymake errline color in emacs?

I'm using flymake with jshint to highlight javascript problems in emacs24. My custom.el has (custom-set-faces '('(flymake-errline ((((class color)) (:background "Red" :foreground "Black"))))) This sets the background color to red for code that…
speedarius
  • 1,006
  • 1
  • 8
  • 15
2
votes
1 answer

Flymake specify location of Makefile

I'm trying to feed flymake output from Haxe compiler, but I don't know how to tell it where the make file lives (ideally, I'd use nxml file instead). So far I have this in the Makefile: BIN = ./bin MAIN = com.wunderwafer.Main SWF =…
user797257
1
vote
1 answer

Python Code checkers wrapper in emacs does not properly feed the results to flymake on win32

So i'm using this wrapper suggested on the emacs python wiki (found here) around pep8, pyflakes and pylint which works on the command line (after the trouble of getting it setup on windows according to " Running python scripts with subprocess in…
octi
  • 1,470
  • 1
  • 17
  • 28
1
vote
0 answers

How do you show flymake diagnostics buffer only when there exists errors on emacs?

On flymake@emacs, there is flymake-show-buffer-diagnostics to show list of errors in new buffer. I would like this to show up only when there exists errors in current buffer. Does anyone know how to achieve this?
Dummy
  • 51
  • 1
  • 7