mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Make use of use-package's :bind option whenever possible. - Make use of use-package's :hook option whenever possible. - Rename and move all mode setup functions into use-package's :init step. - Other minor misc fixes and tweaks to a few modules.
31 lines
644 B
EmacsLisp
31 lines
644 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\\'"
|
|
:bind (:map yaml-mode-map
|
|
("RET" . newline-and-indent))
|
|
|
|
:hook
|
|
(yaml-mode . siren-yaml-mode-setup)
|
|
|
|
:init
|
|
(defun siren-yaml-mode-setup ()
|
|
(siren-prog-mode-setup)
|
|
(setq tab-width 2
|
|
whitespace-action '(auto-cleanup))
|
|
|
|
(highlight-indentation-set-offset 2)
|
|
(highlight-indentation-current-column-mode)
|
|
(subword-mode +1)))
|
|
|
|
(provide 'siren-yaml)
|
|
;;; siren-yaml.el ends here
|