Add yaml library as a dependency for a package. Make sure that opening files open them in yaml-mode.