summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-06-14 19:11:16 +0100
committerAlan Pearce2014-06-14 19:11:16 +0100
commit7a98af7e942ea7260dbe72abf104f9aef20c4f20 (patch)
treeb1ecc05d5c67ac74f86c4dbaf4386898df7d8e25 /tag-emacs
parentd03c4dcd2afc75d6b906c780a009a3ea4e306c7d (diff)
downloaddotfiles-7a98af7e942ea7260dbe72abf104f9aef20c4f20.tar.lz
dotfiles-7a98af7e942ea7260dbe72abf104f9aef20c4f20.tar.zst
dotfiles-7a98af7e942ea7260dbe72abf104f9aef20c4f20.zip
Emacs: enable autopair in yaml and text modes
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index ebf4023..3a17058 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -780,6 +780,8 @@
              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)