aboutsummaryrefslogtreecommitdiff
path: root/modules/prog-python.el
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
commitf49a863a0cb75beeb2dbed6ae9b3df245d2336e8 (patch)
tree2836a51cb650375639635d1de6eb37937ed0e8ad /modules/prog-python.el
parent5db516c8ad2d2312d321c17c5815031be5fcecda (diff)
downloaddotemacs-f49a863a0cb75beeb2dbed6ae9b3df245d2336e8.tar.gz
dotemacs-f49a863a0cb75beeb2dbed6ae9b3df245d2336e8.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/prog-python.el')
-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)