From 5145f6f3404faeef659879a92f8018a94b86644d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 19 Jul 2020 21:32:50 -0700 Subject: [PATCH] =?UTF-8?q?Enable=20=E2=80=98electric-indent-mode=E2=80=99?= =?UTF-8?q?=20and=20=E2=80=98electric-pair-mode=E2=80=99=20in=20Yaml=20fil?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-yaml.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oni-yaml.el b/oni-yaml.el index b838062..5ed5ca0 100644 --- a/oni-yaml.el +++ b/oni-yaml.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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) ;; 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) +(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 '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 'yaml-imenu-enable) (flycheck-yamllint-setup)