summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-21 07:46:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-21 07:46:28 +0200
commit1b44bc02dd054a3792f32d858585f210a73a6ae4 (patch)
tree6b2e7a446bf4f5a2c82e019e3203b50d5ba9ba82 /.config/emacs/init.el
parent4ab713bb2327e34aaf5b8dcaafee388ede07ea05 (diff)
emacs: Enable electric pairs
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el5
1 files changed, 5 insertions, 0 deletions
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