doomemacs/modules/lang/data/config.el

41 lines
871 B
EmacsLisp
Raw Normal View History

;;; lang/data/config.el -*- lexical-binding: t; -*-
2016-04-23 22:10:17 -04:00
;; Built in plugins
(dolist (spec '(("/sxhkdrc\\'" . conf-mode)
("\\.\\(?:hex\\|nes\\)\\'" . hexl-mode)
("\\.plist\\'" . nxml-mode)))
(map-put auto-mode-alist (car spec) (cdr spec)))
(set! :company-backend 'nxml-mode '(company-nxml company-yasnippet))
2016-04-23 22:10:17 -04:00
2017-02-19 18:57:16 -05:00
;;
;; Third-party plugins
;;
2016-04-26 02:00:19 -04:00
2018-04-03 04:18:11 -04:00
(def-package! graphql-mode
:mode "\\.gql\\'")
2016-04-26 02:00:19 -04:00
2017-04-17 02:20:07 -04:00
(def-package! json-mode
:mode "\\.js\\(?:on\\|[hl]int\\(rc\\)?\\)\\'"
2016-04-23 22:10:17 -04:00
:config
(when (featurep! :feature syntax-checker)
(add-hook 'json-mode-hook #'flycheck-mode))
(set! :electric 'json-mode :chars '(?\n ?: ?{ ?})))
2017-02-19 18:57:16 -05:00
(def-package! vimrc-mode
:mode "\\.?vimperatorrc\\'")
2018-04-03 04:16:40 -04:00
2017-02-19 18:57:16 -05:00
;;
;; Frameworks
2016-04-23 22:10:17 -04:00
;;
2017-03-02 18:20:46 -05:00
(def-project-mode! +data-ansible-mode
:modes (yaml-mode)
:files "roles/")
2017-02-19 18:57:16 -05:00
2017-03-02 18:20:46 -05:00
(def-project-mode! +data-vagrant-mode
:files "Vagrantfile")
2016-04-23 22:10:17 -04:00