Android Studio中创建的样板XML代码看起来像这样:如何在emacs中像intellij那样缩进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">
OTOH通过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?我无法用语言来构建谷歌搜索这个问题。
您使用哪种模式?大多数模式都有一个标准变量或一组变量来指定静态或相对缩进首选项。快速谷歌搜索出现[this](http://glblack.livejournal.com/6594.html),但它是'sgml-mode'。 – tripleee 2014-10-03 06:06:34