;; ==================================================
;; Configuration language
;; ==================================================

;; --------------------------------------------------
;; Yaml
;; --------------------------------------------------
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-hook 'yaml-mode-hook
          '(lambda ()
             (define-key yaml-mode-map "\C-m" 'newline-and-indent)))

;; --------------------------------------------------
;; Vagrant
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Vagrantfile$" . ruby-mode))

;; --------------------------------------------------
;; Docker
;; --------------------------------------------------
(require 'dockerfile-mode nil)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))

;; --------------------------------------------------
;; Capistrano
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode))

;; --------------------------------------------------
;; Guard
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Guardfile$" . ruby-mode))

;; --------------------------------------------------
;; Chef
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Berksfile$" . ruby-mode))


;; ==================================================
;; Configuration language
;; ==================================================

;; --------------------------------------------------
;; Yaml
;; --------------------------------------------------
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(add-hook 'yaml-mode-hook
          '(lambda ()
             (define-key yaml-mode-map "\C-m" 'newline-and-indent)))

;; --------------------------------------------------
;; Vagrant
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Vagrantfile$" . ruby-mode))

;; --------------------------------------------------
;; Docker
;; --------------------------------------------------
(require 'dockerfile-mode nil)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))

;; --------------------------------------------------
;; Capistrano
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode))

;; --------------------------------------------------
;; Guard
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Guardfile$" . ruby-mode))

;; --------------------------------------------------
;; Chef
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("Berksfile$" . ruby-mode))

;; --------------------------------------------------
;; Systemd
;; --------------------------------------------------
(add-to-list 'auto-mode-alist '("\\.service$" . conf-mode))

Add conf mode for systemd
Add conf mode for systemd

naokazuterada/dotfiles,naokazuterada/dotfiles