Make Emacs less aggressive about indentation

前端 未结 2 1945
不思量自难忘°
不思量自难忘° 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.

提交回复
热议问题