Add toml-mode

This commit is contained in:
Henrik Lissner 2015-10-18 02:27:02 -04:00
parent c7db4e0096
commit 27bbf93b64
2 changed files with 6 additions and 3 deletions

1
Cask
View File

@ -116,6 +116,7 @@
;; Data -- modules/module-data.el
(depends-on "json-mode")
(depends-on "yaml-mode")
(depends-on "toml-mode")
;; Golang -- modules/module-go.el
(depends-on "go-mode")

View File

@ -1,11 +1,13 @@
;;; module-data.el --- dbs 'n data formats
(use-package yaml-mode
:mode "\\.ya?ml$"
:init (add-hook! yaml-mode 'narf|enable-tab-width-2))
(add-hook! (yaml-mode toml-mode) 'narf|enable-tab-width-2)
(use-package yaml-mode :mode "\\.ya?ml$")
(use-package json-mode :mode "\\.js\\(on\\|hintrc\\)$")
(use-package toml-mode :mode "\\.toml$")
;; TODO: Db client
(provide 'module-data)