Using a global .dir-locals.el file is a better alternative than reincluding the same emacs header in every file of the project.
Sort include alphabetically and make them in order: Main header system headers library headers local headers While reordering, change a include of endian.h to our sparse-endian.h which is more reliant to toolchain changes.
thanks Lorenz!