Enable ‘electric-indent-mode’ and ‘electric-pair-mode’ in Yaml files
This commit is contained in:
parent
0c528af131
commit
5145f6f340
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2019.1210.231537
|
;; Version: 2020.0719.212242
|
||||||
;; Package-Requires: (yaml-mode oni-flycheck oni-fci oni-highlight-indent-guides flycheck-yamllint indent-tools yaml-imenu)
|
;; Package-Requires: (yaml-mode oni-flycheck oni-fci oni-highlight-indent-guides flycheck-yamllint indent-tools yaml-imenu)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -37,10 +37,12 @@
|
||||||
|
|
||||||
(define-key yaml-mode-map (kbd "C-c >") 'indent-tools-hydra/body)
|
(define-key yaml-mode-map (kbd "C-c >") 'indent-tools-hydra/body)
|
||||||
|
|
||||||
|
(add-hook 'yaml-mode-hook 'electric-indent-local-mode)
|
||||||
|
(add-hook 'yaml-mode-hook 'electric-pair-local-mode)
|
||||||
(add-hook 'yaml-mode-hook 'fci-mode)
|
(add-hook 'yaml-mode-hook 'fci-mode)
|
||||||
(add-hook 'yaml-mode-hook 'highlight-indent-guides-mode)
|
(add-hook 'yaml-mode-hook 'highlight-indent-guides-mode)
|
||||||
(add-hook 'yaml-mode-hook 'yaml-imenu-enable)
|
|
||||||
(add-hook 'yaml-mode-hook 'oni-yaml--auto-fill-mode)
|
(add-hook 'yaml-mode-hook 'oni-yaml--auto-fill-mode)
|
||||||
|
(add-hook 'yaml-mode-hook 'yaml-imenu-enable)
|
||||||
|
|
||||||
(flycheck-yamllint-setup)
|
(flycheck-yamllint-setup)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue