summary refs log tree commit diff
path: root/emacs/custom/my-prog.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-prog.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el
index 8c7925d..f91f116 100644
--- a/emacs/custom/my-prog.el
+++ b/emacs/custom/my-prog.el
@@ -7,6 +7,10 @@
 (customize-set-variable 'Man-notify-method 'aggressive)
 (customize-set-variable 'Man-fontify-manpage-flag t)
 
+;; turn on `electric-pair-mode' on `prog-mode' and `conf-mode-hook'
+(dolist (hook '(prog-mode-hook conf-mode-hook))
+  (add-hook hook 'electric-pair-mode))
+
 ;; Skip over warnings and info messages in compilation
 (customize-set-variable 'compilation-skip-threshold 2)
 ;; Don't freeze when process reads from stdin