Add ~yaml-mode~

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-09-16 19:34:39 +02:00
parent 8e9f6e6334
commit f8fa60b534

24
emacs-lisp/yaml.org Normal file
View file

@ -0,0 +1,24 @@
:PROPERTIES:
:header-args:emacs-lisp: :comments link :results none
:ID: 09190c4d-da4c-46e5-a57c-7e88c1a85ed8
:END:
#+title: Yaml
#+filetags: emacs-load
Install ~yaml-mode~.
#+BEGIN_SRC emacs-lisp :noweb yes
(use-package yaml-mode
:straight t
:mode
<<mode-hooks>>)
#+END_SRC
Enable ~yaml-mode~ for multiple file extensions.
#+name: mode-hooks
#+begin_src emacs-lisp :tangle no
(("\\.yml\\'" . yaml-mode)
("\\.yaml\\'" . yaml-mode))
#+end_src