I often find myself in the situation where I'm told to put absolute paths as directory local variable. For example cmake-ide's
cmake-ide-build-dir. Of course this is not very portable.
So instead of
((nil . ((cmake-ide-project-dir . "/home/user/code/project"))))
I want something like
((nil . ((cmake-ide-project-dir . directory-of-current-dir-locals-file))))
How can I define such a variable
directory-of-current-dir-locals-file? And how would I set for example
cmake-ide-build-dir, which is typically
(concat directory-of-current-dir-locals-file "build")?