Add yaml-mode

This commit is contained in:
2016-01-31 19:29:18 +00:00
parent b5865cfc4d
commit 900bc07587
2 changed files with 31 additions and 0 deletions

30
modules/siren-yaml.el Normal file
View File

@@ -0,0 +1,30 @@
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
;;; Commentary:
;; Basic configuration for yaml-mode.
;;; Code:
(siren-require-package 'yaml-mode)
(require 'siren-programming)
(defun siren-yaml-mode-defaults ()
(siren-prog-mode-defaults)
(subword-mode +1)
(setq tab-width 2)
(highlight-indentation-set-offset 2)
(highlight-indentation-mode)
(highlight-indentation-current-column-mode)
(setq whitespace-action (quote (auto-cleanup)))
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent))
(setq siren-yaml-mode-hook 'siren-yaml-mode-defaults)
(add-hook 'yaml-mode-hook (lambda ()
(run-hooks 'siren-yaml-mode-hook)))
(provide 'siren-yaml)
;;; siren-yaml.el ends here

View File

@@ -60,6 +60,7 @@
(require 'siren-scss)
(require 'siren-sh)
(require 'siren-thrift)
(require 'siren-yaml)
(provide 'siren-modules)
;;; siren-modules.el ends here