From 9754308af3fdbc39064e6a4c6b134af12cb3d541 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 27 Apr 2022 19:05:47 -0700 Subject: my-prog: enable electric-pair-mode --- emacs/custom/my-edit.el | 4 ---- emacs/custom/my-prog.el | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'emacs/custom') 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 -- cgit 1.4.1