I have a project under git which allows this
#+BEGIN_SRC emacs-lisp
(expand-file-name (car (project-roots (project-current))))
#+END_SRC
to find my project root automatically.
Now I want to use this path to automatically define my setup file location at the beginning of my regular org mode files.
The idea is:
#+SETUPFILE: (concat (expand-file-name (car (project-roots (project-current)))) "setup/setup.org")
#+TITLE: example
...
Unfortunately, this does not work as the expression (concat ...)
is not interpreted as an emacs-lisp expression...
Is it possible to make it work?
update: to be sure to be able to run the provided example, please add
(require 'project)