Go and electric-operator-mode do not play nicely

This commit is contained in:
Gerard Vermeulen 2025-01-13 12:07:11 +01:00
parent 8fc0ebbb62
commit 121fef9236

View File

@ -5262,7 +5262,8 @@ add spaces around operators for [[https://go.dev/][Go]] and [[https://www.python
#+name: lst:configure-electric-operator
#+begin_src emacs-lisp -n :results silent
(when (ensure-package-installation 'electric-operator)
(add-hook 'go-ts-mode-hook #'electric-operator-mode)
;; electric-operator-mode does not handle all operators in Go correctly.
;; (add-hook 'go-ts-mode-hook #'electric-operator-mode)
(add-hook 'python-mode-hook #'electric-operator-mode))
#+end_src