all repos — nixfiles @ 7a98af7e942ea7260dbe72abf104f9aef20c4f20

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

Emacs: enable autopair in yaml and text modes

Alan Pearce
commit

7a98af7e942ea7260dbe72abf104f9aef20c4f20

parent

d03c4dcd2afc75d6b906c780a009a3ea4e306c7d

1 file changed, 2 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -780,6 +780,8 @@ :commands (autopair-mode
autopair-on) :init (progn (add-hook 'prog-mode-hook #'autopair-on) + (add-hook 'text-mode-hook #'autopair-on) + (add-hook 'yaml-mode-hook #'autopair-on) (defun autopair-off () (autopair-mode -1)) (add-hook 'web-mode-hook #'autopair-off)