Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I might need to be editing a TON of YAML... how do I add a YAML mode? #14

Open
ericllazarus opened this issue Dec 2, 2021 · 3 comments
Assignees
Labels

Comments

@ericllazarus
Copy link

I might need to be editing a TON of YAML... how do I add a YAML mode?

Thanks!

@myTerminal
Copy link
Owner

You need to do two things:

  1. Add yaml-mode to the list of packages here

  2. Add a hook such that yaml-mode is started when you open a *.yaml file

     (add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode))
    

@myTerminal myTerminal self-assigned this Dec 2, 2021
@ericllazarus
Copy link
Author

ericllazarus commented Dec 3, 2021 via email

@myTerminal
Copy link
Owner

As of now, there isn't a dedicated place for hooks, but as a part of an upcoming massive update, I'm planning to introduce one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants