Files
.emacs.d/modules/siren-yaml.el
Jim Myhrberg 43b092a8b0 Don't lazy-require siren module dependencies
All siren modules lazy-load if they can, so there's no need to
lazy-require a siren module.

Also this avoids the annoyance of the first time you use a feature
it triggers a package install from melpa. All such things should
happen as part of Emacs startup.
2018-01-10 14:42:07 +00:00

29 lines
727 B
EmacsLisp

;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
;;; Commentary:
;; Basic configuration for yaml-mode.
;;; Code:
(require 'siren-programming)
(use-package yaml-mode
:mode "\\.yml\\'" "\\.yaml\\'"
:config
(defun siren-yaml-mode-defaults ()
(siren-prog-mode-defaults)
(setq tab-width 2
whitespace-action '(auto-cleanup))
(highlight-indentation-set-offset 2)
(highlight-indentation-current-column-mode)
(subword-mode +1)
(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