all repos — nixfiles @ 7a8e863372414120e2a25ee4f11ddc7b60e8c03d

System and user configuration, managed by nix and home-manager

Emacs: enable autopair-mode in yaml-mode
Alan Pearce alan@alanpearce.co.uk
Sun, 03 Nov 2013 12:35:20 +0000
commit

7a8e863372414120e2a25ee4f11ddc7b60e8c03d

parent

d658978cd6d004369edef823ec6a6b0d1b2e444a

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -631,7 +631,9 @@ ("\\.cap\\'" . ruby-mode))) 
 (use-package yaml-mode
   :mode (("/group_vars/.*" . yaml-mode)
-         ("/host_vars/.*" . yaml-mode)))
+         ("/host_vars/.*" . yaml-mode))
+  :config (progn
+            (add-hook 'yaml-mode-hook #'autopair-mode)))
 
 ;;;; Planning