Make Emacs less aggressive about indentation

前端 未结 2 1946
不思量自难忘°
不思量自难忘° 2021-01-03 07:20

Emacs reindents the current line whenever I type certain things, like \";\" or \"//\". This is pretty annoying, since there are a whole lot of places where it isn\'t smart

相关标签:
2条回答
  • 2021-01-03 07:54

    Try running c-toggle-electric-state to turn off the electric action of these characters.

    You can do this as part of a c-mode-common-hook, or toggle the state manually by hitting C-c C-l.

    0 讨论(0)
  • 2021-01-03 08:02

    most likely caused by the inline-and-indent 'feature' of c-mode and derivatives. emacswiki has several solutions.

    0 讨论(0)
提交回复
热议问题