About 29,200 results
Open links in new tab
  1. Python mode indentation - Emacs Stack Exchange

    5 I feel kind of ridiculous for not having seen this before, but I found the answer on the EmacsWiki: No Tabs page under the "Smart inference of indentation style" section. Putting …

  2. Is there indentation in org src blocks? - Emacs Stack Exchange

    Nov 3, 2021 · EDIT 2: Note that you should not expect "real" python indentation. This is more like typing python code in a buffer that is in fundamental mode. EDIT 3: I stand corrected: you …

  3. indentation - How can I make python-mode correctly indent …

    Nov 10, 2021 · Python 3.10 added a match statement. When I try and type one in emacs 27.2, it does not indent it correctly, presumably because it does not yet have support for it. How do I …

  4. Why is my Python indentation set to 8 locally by default?

    Sep 21, 2019 · The default is 4 spaces: (defcustom python-indent-offset 4 "Default indentation offset for Python." ... But python-mode guesses the spaces when opening a file and overwrites …

  5. How to get GitHub copilot to use 4 spaces to indent Python code?

    Jun 17, 2025 · I have also run (setq-default indent-tabs-mode nil) (My tab-width variable is set to 8, but since I don't want to see a TAB character within a 10-mile radius of this code, this …

  6. indentation - Indenting Python multiline argument lists like …

    Feb 7, 2025 · I want to configure Emacs to indent multiline argument lists in Python like Black or Ruff (4 spaces before each argument), but Emacs is very insistent on following PEP-8 (8 …

  7. Python-mode Multi-line Conditional Indentation

    Mar 14, 2023 · (advice-add 'python-indent--calculate-indentation :around #'python-indent-calc-indent-ad) This is less efficient than the modification of python-indent--calculate-indentation …

  8. indentation - change python indent in a specific file - Emacs Stack ...

    May 23, 2016 · I have a piece of legacy code in Python that uses inconsistent tabs - 2 spaces in some instances and 4 in others. I have my defaults set in my .emacs file to use 4 spaces, but …

  9. indentation - how to align python code in a long block? - Emacs …

    Jul 27, 2017 · In all emacs python modes that I have used, pressing TAB (bound to indent-for-tab-command) will "intelligently" indent to the current block level. Repeatedly pressing TAB will …

  10. Strange autoindentation in org mode source blocks

    Apr 21, 2022 · I try to use org-mode as a replacement for jupyter notebook, and I was faced with a problem: when I edit a python src block, newlines don't indent properly, so I have to press …