0
如何使用align
emacs命令对齐如下结构的文件?使用emacs对齐“键值注释”文件类型
key.name1 "his value 1"; # the comment
key.name2 "his other value";
otherkey.id 10; # comment
key.without.other ; # comment
key2.without.other true; # comment
我使用conf-mode
下的emacs 25.
的列编码如下:
- 第一列(密钥)是没有空格的字符串,
- 第二列(值)到达分号,
- 第三列(注释)并非总是存在,并以
#
开头“
结果应该是
key.name1 "his value 1"; # the comment
key.name2 "his other value";
otherkey.id 10; # comment
key.without.other ; # comment
key2.without.other true; # comment
感谢您的建议。我编辑了更具体的问题 –