From 1b44bc02dd054a3792f32d858585f210a73a6ae4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Sep 2024 07:46:28 +0200 Subject: emacs: Enable electric pairs --- .config/emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index b3c5eb1..c6b688b 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -871,6 +871,11 @@ the comparison of the ‘company-pseudo-tooltip-overlay’ height and 0 using PR ("a" eglot-code-actions) ("r" eglot-rename))) + ;;; Context-Specific Modes +(dolist (mode '(c-mode c-ts-mode go-ts-mode)) + (add-hook (x-mode-to-hook mode) #'electric-pair-local-mode) + (add-hook (x-mode-to-hook mode) #'electric-quote-local-mode)) + ;;; Emacs Calculator (setq calc-display-trail nil -- cgit v1.2.3