diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-12 11:40:51 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-12 11:40:51 -0500 |
| commit | a42ebafc5c54766aa5a9eaf98e3ec9c8f4a43b1c (patch) | |
| tree | 911796ec8fe885cdabb64c61c54b381711473642 /modules | |
| parent | 4785d70092e0a628eb17e32c297a3f919874071d (diff) | |
| download | dotemacs-a42ebafc5c54766aa5a9eaf98e3ec9c8f4a43b1c.tar.gz dotemacs-a42ebafc5c54766aa5a9eaf98e3ec9c8f4a43b1c.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.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/prog-python.el b/modules/prog-python.el index 5720e25e3..a4c662e46 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) |
