Emacs: enable autopair in yaml and text modes
Alan Pearce alan@alanpearce.co.uk
Sat, 14 Jun 2014 19:11:16 +0100
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-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)