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)

1 Answer 1


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.