Android Studio创建的样板XML代码看起来像这样:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
tools:context=".MyActivity">
但是用 Emacs 缩进会让所有同级元素都对齐,这样会占用太多空间,并且在一个使用 IntelliJ 的团队中会给我带来很多麻烦。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
tools:context=".MyActivity">
我该如何配置emacs以使其像这样缩进xml?我无法想到一个合适的搜索词语来解决这个问题。
sgml-mode
的。 - tripleee