I'm trying to activate flycheck-mode by default when opening any file in my project's directory. I'm a bit of an elisp newbie, my .dir-locals.el file looks like this:
((nil . (mode . flycheck-mode))
((cmake-ide-dir . "~/workspace/Samira3D"))
((cmake-ide-build-dir . "~/workspace/Samira3D/build/")))
And the error I'm getting is
Invalid function: (nil mode . flycheck-mode)
How would I go about solving this?
.dir-locals.el
. The file only contains a list that encodes how the variables are set. See the manual for details. The reason that you are getting this error I think is that flycheck mistreats the file as a usual el file.eval
keyword is supported like with file-local variables.