mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
18 lines
565 B
EmacsLisp
18 lines
565 B
EmacsLisp
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
|
|
(add-to-list 'auto-mode-alist '("\\.yaml$" . yaml-mode))
|
|
(add-to-list 'auto-mode-alist '("\\.yml\\.example$" . yaml-mode))
|
|
|
|
(defun customizations-for-yaml-mode ()
|
|
(interactive)
|
|
(flyspell-prog-mode)
|
|
(linum-mode t)
|
|
(fci-mode)
|
|
(auto-complete-mode)
|
|
(subword-mode)
|
|
(setq highlight-indentation-offset 2)
|
|
(highlight-indentation-mode)
|
|
(highlight-indentation-current-column-mode)
|
|
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent))
|
|
|
|
(add-hook 'yaml-mode-hook 'customizations-for-yaml-mode)
|