(use-package yaml-mode :init (add-hook 'yaml-mode-hook 'flycheck-mode) :mode ("\\.ya?ml\\'" . yaml-mode)) (provide 'module-yaml)