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
33
votes
2 answers

How to check whether a minor mode(.e.g flymake-mode) is on?

I always get error when use flymake-mode. And flymake-mode turn off. So I want to check whether flymake-mode is on. If it is not on, I will turn it on before call flymake-next-error. Thanks.
coordinate
  • 15,224
  • 6
  • 24
  • 24
25
votes
4 answers

How to disable Emacs-Flymake for html mode

Here is my flymake setup in .emacs file: (when (load "flymake" t) (defun flymake-pyflakes-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) …
yilmazhuseyin
  • 6,442
  • 4
  • 34
  • 38
17
votes
2 answers

Running pyflakes remotely with flymake and tramp in emacs?

I'm trying to use flymake to run pyflakes, as suggested here This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although…
phils
  • 71,335
  • 11
  • 153
  • 198
14
votes
2 answers

Emacs: annoying Flymake dialog box

I have the following lines in my ~/.emacs.d/init.el (custom-set-variables '(flymake-allowed-file-name-masks (quote ( ("\\.cc\\'" flymake-simple-make-init) ("\\.cpp\\'" flymake-simple-make-init))))) (add-hook…
baol
  • 4,362
  • 34
  • 44
12
votes
2 answers

Emacs Haskell Mode Flymake

I've been trying to get Flymake to work with Haskell mode in emacs. I've gotten this to work in the past and I have to say the combination of Flymake and Haskell's type system is ridiculously synergistic. Now it seems I am having trouble getting…
Eric
  • 663
  • 4
  • 14
12
votes
1 answer

Flake8 Attribute Error: 'module' object has no attribute 'normalize_paths'

Here is my output of flake8 during validation: Traceback (most recent call last): File "/usr/local/bin/flake8", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/flake8/main.py", line 25, in main …
user6040992
12
votes
1 answer

Racket flymake-mode for emacs

Is it possible to make flymake-mode be aware of syntax (or other) errors in racket files like it done for example for erlang or python? I'm using geiser-mode for racket, if it is matters.
gordon-quad
  • 734
  • 5
  • 15
11
votes
2 answers

Getting rid of "buffer has running process" confirmation when the process is a flymake process

Is there a way to tell emacs to always kill flymake processes when I'm closing the associated buffer? I don't want to get the confirmation when the only process associated with the buffer is a flymake process?
kanak
  • 271
  • 2
  • 8
7
votes
4 answers

Is there a trick to debugging a spin in emacs elisp, in a flymake module?

I am getting a CPU spin in emacs elisp, within the C# flymake module. (Flymake is the module in emacs that periodically runs a build, then highlights any syntax errors or warnings in the current buffer.) I'm about to wade into the code, to look for…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
7
votes
1 answer

What is the correct flymake configuration for emacs? (using Python.el)

I am using emacs as python IDE. I am having flymake installed, however, it shows the following error whenever I work with a .py file Error (flymake): Flymake: Failed to launch syntax check process 'pycheckers' with args…
Chirag
  • 1,189
  • 2
  • 21
  • 43
6
votes
2 answers

Validating JSON file with JSON schema in Emacs using flymake/flycheck?

Is it possible to validate JSON file using JSON schema in Emacs with flymake/flycheck? What would be the best validator to detect schema-related error and notify it to Emacs with appropriate error message and location?
user2884138
  • 61
  • 1
  • 2
5
votes
4 answers

Can flymake's temporary file be created in the system's temporary directory?

I am currently using the following code to hook up flymake and Pyflakes in emacs: (defun flymake-create-temp-in-system-tempdir (filename prefix) (make-temp-file (or prefix "flymake"))) and then I pass this function to…
Ryan Kaskel
  • 4,744
  • 1
  • 19
  • 18
5
votes
2 answers

How to complete disable flymake and all the things it is hooked to?

Following are the snippets in my init.el relevant to Flymake: (add-hook 'python-mode-hook (lambda () (unless (eq buffer-file-name nil) (flymake-mode 1)) ;dont invoke flymake on temporary buffers for the interpreter …
Bleeding Fingers
  • 6,993
  • 7
  • 46
  • 74
4
votes
1 answer

emacs flymake mode fails for coffeescript

I am trying to run flymake mode with CoffeeScript. For some reason when I invoke flymake mode I get this message (Its all on one line in the error log): Flymake: Configuration error has occurred while running (/usr/bin/coffee…
Zachary K
  • 3,205
  • 1
  • 29
  • 36
4
votes
0 answers

Are there any automake m4 macros for flymake mode?

EmacsWiki (in http://www.emacswiki.org/emacs/FlyMake) has a recommendation to create a flymake.mk file and include it in every Makefile if you are using Automake, but this doesn't seem very... Automake-y and I assume that having a standard m4 macro…
BD at Rivenhill
  • 12,395
  • 10
  • 46
  • 49
1
2 3 4 5