diff --git a/README.org b/README.org index 0cff2fa..a32c31a 100644 --- a/README.org +++ b/README.org @@ -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)