mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
33 lines
622 B
EmacsLisp
33 lines
622 B
EmacsLisp
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for yaml-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-prettier-js)
|
|
(require 'siren-prog-mode)
|
|
|
|
(use-package yaml-mode
|
|
:mode "\\.yml\\'" "\\.yaml\\'"
|
|
:bind (:map yaml-mode-map
|
|
("RET" . newline-and-indent))
|
|
|
|
:hook
|
|
(yaml-mode . siren-yaml-mode-setup)
|
|
|
|
:init
|
|
(defun siren-yaml-mode-setup ()
|
|
(run-hooks 'prog-mode-hook)
|
|
(setq tab-width 2)
|
|
(prettier-js-mode)
|
|
(subword-mode +1)))
|
|
|
|
(use-package yaml-imenu
|
|
:config
|
|
(yaml-imenu-enable))
|
|
|
|
(provide 'siren-yaml)
|
|
;;; siren-yaml.el ends here
|