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
4
votes
0 answers

Flymake Configuration Error in Ubuntu Emacs (C++ mode)

I have been trying to set up fly-make on my system. But it hasn't been working. I have a C++ file called advancedFunctions.cpp and a have a Makefile in the directory where my .cpp file is housed. My Makefile contains this: check-syntax: g++ -o…
alabid
  • 261
  • 1
  • 7
4
votes
1 answer

Is there a way to make flymake to compile only when I save

When I type flymake makes the cursor hang a little. It's kind of annoying. I was wondering if there is a way to tell flymake to do not parse and compile each time I change something, just do it when I save. Any other suggestion? Thanks,
Federico
  • 5,438
  • 5
  • 39
  • 47
4
votes
1 answer

Pylint not working with Emacs GUI on OS X; works from command-line

When run from the command-line (emacs filename.py) flymake and pylint work perfectly together. Errors are highlighted properly. (Although I can't tooltip hover to get error details because it's text-mode.) When run from the GUI (Carbon Emacs)…
Schof
  • 6,329
  • 5
  • 28
  • 38
4
votes
3 answers

How can I identify PHP unused variables (in Emacs)?

Is it somehow possible to identify unused variables in a PHP file in Emacs? With other languages, this is possible by using tools such as Flymake. I've already enabled Flymake to show syntax errors for my PHP files on the fly, but still it's…
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
4
votes
0 answers

Flymake and Haskell

I've seen a number of older questions on this but I'm wondering if there is a more recent problem. Earlier this year I rebuilt my Ubuntu box, installed the GH system 7.6.2, and GNU Emacs 24.2.1. I've recently had some time to return to Haskell but…
sfjac
  • 7,119
  • 5
  • 45
  • 69
4
votes
1 answer

Configure Emacs Flymake to call g++ directly

When writing simple, one file, C++ code, I usually call g++ directly. By default, Flymake seems to assume the presence of a Makefile with a check-syntax target. How do I configure Flymake to simply call g++ directly, e.g: g++ -c a.cpp If the…
Arrakis
  • 576
  • 1
  • 6
  • 12
3
votes
1 answer

Making flymake work with Django?

How do I disable flymake when I'm working on Django templates? Flymake is great for editing python files, but is really giving me problems with django templates. For instance, the following template throws no errors, though the syntax highlighting…
jrhorn424
  • 1,981
  • 2
  • 21
  • 27
3
votes
1 answer

Flymake can't find Makefile in parent directory

I'm using Flymake for C code syntax checking. If the Makefile and the source file are located in the same directory, Flymake works fine. But if the Makefile is in the parent directory of the source code (like in most C projects), it seems like…
Ben.W
  • 199
  • 1
  • 9
3
votes
1 answer

Force flycheck mode to turn off in emacs when working with remote (tramp) python files but not locally

I am trying to make flycheck run locally for Python files, but not have flycheck run when working with python files on a remote machine. I have the problem that flycheck slows down saving and it seems to send a second file that sometimes ends up…
J Spen
  • 2,614
  • 4
  • 26
  • 41
3
votes
1 answer

emacs: help me solve this autoload ordering problem with flymake and csharp

How can I deliver a module that requires patching flymake, with minimal startup time (=autoload) and minimal impact on the user's emacs.el? I'm working on the flymake-for-csharp module. It works with flymake, teaches it how to be more flexible with…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
3
votes
1 answer

flymake error: no build file found, flymake switching off

When I try to use flymake on a simple java program it immediately tells me that it is switching off because it cant find a build file. I thought that flymake would make all of the files it needed to execute on its own and that all that was required…
3
votes
1 answer

Emacs: Pymacs not loading ropemacs with Carbon Emacs

I'm attempting to use Pymacs with rope/ropemacs for flymake syntax checking as described here: http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/ When I start Carbon Emacs "normally" it throws the error: error:…
moorej
  • 517
  • 3
  • 17
3
votes
1 answer

Using emacs for .tex files with Flymake - error with unbalanced braces

I am trying to use flymake in emacs for my .tex file editing. I've got it all up and running up until I type in an unbalanced brace { or }. When flymake kicks off, it comes back with the error: Flymake: Configuration error has occurred while…
Matt Klein
  • 7,856
  • 6
  • 45
  • 46
3
votes
2 answers

Running flymake for python when files don't have .py extension

I'm not a lisp guy at all, but my primary scripting environment lives on emacs and I need some help to get my flymake/pyflakes running when there is no .py extension on files. Because some of the scripts here at my work doesn't have .py extension on…
Muhammet Can
  • 1,304
  • 2
  • 16
  • 30
2
votes
1 answer

Flymake alternative that doesn't require altering the makefile

According to this question in order for Flymake to work you must add a special target to the makefile. I don't want to do this. Is there an alternative to Flymake that doesn'r require you to mess around with the makefiles?
EpsilonVector
  • 3,973
  • 7
  • 38
  • 62