summaryrefslogtreecommitdiff
path: root/.emacs.d.back/setup/setup-yaml-mode.el
blob: 059c74e2dfda9c7cf754d3b10edca3ab2d1751cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; setup-yaml-mode.el --- rogs default yaml mode configuration
;;
;;; Commentary:
;;
;; My default configuration for yaml mode
;;
;;; Code:

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

(add-hook 'yaml-mode-hook
      '(lambda ()
        (define-key yaml-mode-map "\C-m" 'newline-and-indent)))

(provide 'setup-yaml-mode)
;;; setup-yaml-mode.el ends here