From f49a863a0cb75beeb2dbed6ae9b3df245d2336e8 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 12 May 2026 11:40:51 -0500 Subject: 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. --- modules/prog-python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/prog-python.el') 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) -- cgit v1.2.3