Add the package 'flycheck-d'.
Add the package 'd-mode'.
Use a specific version of AUCTeX.