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?