I have a plugin system setup that will (at compile time) search through all the plugins in the plugins directory.
My problem is that I'm trying to allow for flycheck to add these plugins' headers to the include paths.
I have the problem that I can't figure out how to make the expression actually evaluate to its value. (The expression is treated as a value rather than being evaluated)
((c++-mode . ((flycheck-clang-include-path . (split-string (substring
(shell-command-to-string
(concat "echo src;"
"cd /home/czipperz/vick &&"
"[ \"$(ls plugins)\" ] &&"
"[ \"$(find plugins -name src -type d)\" ] &&"
" find plugins -name src -type d")) 0 -1)
"\n+")))))
When I open a file I get an error: Error while checking syntax automatically: (split-string (substring ...) "\n+") of flycheck-clang-include-path for option "-I" is not a list of strings
.