emacs编辑asm文件如何防止自动缩进
Tofloor
poster avatar
skycancer
deepin
2017-08-26 05:11
Author
最近在捣鼓Orange'S系统。其中有部分代码使用asm语言,在使用emacs编辑源码的时候出现了奇葩的情况。
asm中分号是注释,在输入一个分号的时候会自动补上一个分号也就是有两个分号,而且还会自动缩进。在输入一个分号又会取消自动缩进。
而且在换号的时候会自动缩进上一行的代码。
我根本用不着它自作主张的给我来缩进,需要缩进的时候我自己会tap,space。
请问诸位这个该怎么取消或者说从哪里可以去设置取消?
Reply Favorite View the author
All Replies
jingle
deepin
2017-08-26 07:11
#1
Reply View the author
wangyong
deepin
2017-08-26 15:57
#2
这是你自己emacs配置有问题,不要换行的时候自动缩进
Reply View the author
skycancer
deepin
2017-08-27 01:40
#3
https://bbs.deepin.org/post/144667
这是你自己emacs配置有问题,不要换行的时候自动缩进

我是直接sudo apt-get install的,并没有做出过任何配置。事实上我并不喜欢配置emacs。
Reply View the author
133******90
deepin
2017-08-27 15:49
#4
可以试试vs code,再安装asm插件。我现在也在捣鼓那个。还是蛮好用的。
Reply View the author
wangyong
deepin
2017-08-28 16:19
#5
https://bbs.deepin.org/post/144667
我是直接sudo apt-get install的,并没有做出过任何配置。事实上我并不喜欢配置emacs。 ...

这个就要改emacs asm-mode 默认的缩进策略了,搜索一下 emacswiki.org 吧
Reply View the author
skycancer
deepin
2017-09-02 10:20
#6
https://bbs.deepin.org/post/144667
这个就要改emacs asm-mode 默认的缩进策略了,搜索一下 emacswiki.org 吧

OK,我去查查看。
Reply View the author