From 32d6065654ea0b582774cbfda318a79babcffd2b Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 10 Aug 2021 21:49:01 +0200 Subject: Update markdown-mode and yaml-mode --- .emacs.d/lisp/yaml-mode.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d/lisp/yaml-mode.el') diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index 91db316..9d619d5 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -484,6 +484,10 @@ this will do usual adaptive fill behaviors." ;;;###autoload (add-to-list 'auto-mode-alist '("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode)) +;;;###autoload +(add-to-list 'magic-mode-alist + '("^%YAML\\s-+[0-9]+\\.[0-9]+\\(\\s-+#\\|\\s-*$\\)" . yaml-mode)) + (provide 'yaml-mode) ;;; yaml-mode.el ends here -- cgit v1.3