\documentclass{minimal}
\begin{document}
$\hat x \hat M \hat 0 \hat + \widehat{abc}$
\end{document}
% Local Variables:
% TeX-engine: luatex
% End:
