summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-27 19:05:47 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-27 19:05:47 -0700
commit9754308af3fdbc39064e6a4c6b134af12cb3d541 (patch)
tree7bfeb3cd1a0b9574ecdef3616e1e3f5158ee12cd /emacs
parentmy-prog: more simplification (diff)
downloademacs.d-9754308af3fdbc39064e6a4c6b134af12cb3d541.tar.gz
my-prog: enable electric-pair-mode
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-edit.el4
-rw-r--r--emacs/custom/my-prog.el4
2 files changed, 4 insertions, 4 deletions
diff --git a/emacs/custom/my-edit.el b/emacs/custom/my-edit.el
index fc148cc..bff7e04 100644
--- a/emacs/custom/my-edit.el
+++ b/emacs/custom/my-edit.el
@@ -16,10 +16,6 @@
 (dolist (hook '(prog-mode-hook text-mode-hook conf-mode-hook outline-mode-hook))
   (add-hook hook 'my/whitespace-setup))
 
-;; 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))
-
 (setq show-paren-delay 0
       show-paren-highlight-openparen t
       show-paren-when-point-inside-paren t
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