mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Split large modules into smaller parts (e.g. siren-text-manipulation) - Organize modules into high level groups: - completion - core - editor - languages - linting - misc - navigation - projects - spelling - text-editing - version-control - windows - workspaces
40 lines
860 B
EmacsLisp
40 lines
860 B
EmacsLisp
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for yaml-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-fci)
|
|
(require 'siren-flyspell)
|
|
(require 'siren-highlight-indentation)
|
|
(require 'siren-linum)
|
|
(require 'siren-prog-mode)
|
|
(require 'siren-smartparens)
|
|
|
|
(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))
|
|
|
|
(fci-mode)
|
|
(flyspell-mode)
|
|
(highlight-indentation-current-column-mode)
|
|
(highlight-indentation-set-offset 2)
|
|
(linum-mode t)
|
|
(smartparens-mode +1)
|
|
(subword-mode +1)))
|
|
|
|
(provide 'siren-yaml)
|
|
;;; siren-yaml.el ends here
|