diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:46:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:46:28 +0200 |
commit | 1b44bc02dd054a3792f32d858585f210a73a6ae4 (patch) | |
tree | 6b2e7a446bf4f5a2c82e019e3203b50d5ba9ba82 /.config/emacs/init.el | |
parent | 4ab713bb2327e34aaf5b8dcaafee388ede07ea05 (diff) |
emacs: Enable electric pairs
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 5 |
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 |