Start to explain the electric operator mode

This commit is contained in:
Gerard Vermeulen 2021-12-28 08:44:00 +01:00
parent f19fcfd025
commit 33f1d5053c

View File

@ -1615,9 +1615,13 @@ LaTeX, Org, and Python.
:CUSTOM_ID: sec:electric-operators
:END:
Listing [[lst:configure-electric-operator-mode]] configures =electric-operator-mode=
to add spaces around operators for compatible with for instance the [[https://black.readthedocs.io/en/stable/][Black code
formatter for Python]].
#+caption[Configure =electric-operator-mode=]:
#+caption: Configure =electric-operator-mode=.
#+label: lst:configure-electric-operator-mode
#+name: lst:configure-electric-operator-mode
#+begin_src emacs-lisp
(when (fboundp 'electric-operator-mode)
(add-hook 'c-mode-common #'electric-operator-mode)