1

When programming in extended assembler (using asm-mode), auto indentation insists on indenting compiler directives, such as #define, #if and #endif, how can I disable this?

problem example

Emacs version: 0.300.0@26.3 (spacemacs)

Luctins
  • 120
  • 7

1 Answers1

1

setting electric-indent-mode to nil on asm-mode-hook resolved the issue.

Luctins
  • 120
  • 7
  • src: https://emacs.stackexchange.com/questions/5939/how-to-disable-auto-indentation-of-new-lines?rq=1 – Luctins Apr 30 '21 at 14:38