Add :lang yaml module

Removes yaml-mode from :lang data and adds LSP support (#2502).

Closes #2502

Co-authored-by: Seong Yong-ju <sei40kr@gmail.com>
This commit is contained in:
Henrik Lissner 2020-04-23 17:43:42 -04:00
parent b151abfd34
commit 4a8c4815f1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 53 additions and 4 deletions

View file

@ -0,0 +1,9 @@
;;; lang/yaml/config.el -*- lexical-binding: t; -*-
(use-package! yaml-mode
:hook "Procfile\\'"
:init
(when (featurep! +lsp)
(add-hook 'yaml-mode-local-vars-hook #'lsp!))
:config
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))