summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 11:40:51 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 11:40:51 -0500
commit0702a10b6a0565b39640dc444bf3845003a7b9b7 (patch)
tree0e49ea124970c027ca92629c89871493358de73f /modules
parenta6986ee0e1a0be8fa52d35ee8b5e4134dac34183 (diff)
downloaddotemacs-0702a10b6a0565b39640dc444bf3845003a7b9b7.tar.gz
dotemacs-0702a10b6a0565b39640dc444bf3845003a7b9b7.zip
fix(prog-python): toggle electric-pair-local-mode in the setup hook
`cj/python-setup` called `(electric-pair-mode t)`, which flips the global minor mode every time a Python buffer opens. I switched it to `electric-pair-local-mode` so the pairing stays scoped to Python buffers, like the other buffer-local settings in the hook.
Diffstat (limited to 'modules')
-rw-r--r--modules/prog-python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/prog-python.el b/modules/prog-python.el
index 5720e25e..a4c662e4 100644
--- a/modules/prog-python.el
+++ b/modules/prog-python.el
@@ -50,7 +50,7 @@ Install with: pip install mypy")
(setq-local tab-width 4) ;; set the tab width to 4 spaces
(setq-local standard-indent 4) ;; indent 4 spaces
(setq-local indent-tabs-mode nil) ;; disable tab characters
- (electric-pair-mode t) ;; match delimiters automatically
+ (electric-pair-local-mode t) ;; match delimiters automatically (buffer-local)
;; Enable LSP if available
(when (and (fboundp 'lsp-deferred)