Search code examples
emacsflymake

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 functionality I would like is: open the file right away and maybe show a message that flymake can't work but stay out of the way.

I already have set flymake-gui-warnings-enabled to nil which at least rids me of the annoying dialog box.


Solution

  • you could configure flymake to not start syntax checking when loading the file (i always do that just to speed things up).

    (setq flymake-start-syntax-check-on-find-file nil)