4

保留org代码块中TAB的方法

 3 years ago
source link: https://www.lujun9972.win/blog/2017/10/22/%E4%BF%9D%E7%95%99org%E4%BB%A3%E7%A0%81%E5%9D%97%E4%B8%ADtab%E7%9A%84%E6%96%B9%E6%B3%95/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

保留org代码块中TAB的方法

编辑org文件中的代码块后,在推出代码块编辑时org会自动将其中的TAB都转换为空格.

对大多数编程语言来说,这不是什么大问题,但是对于makefile来说,TAB是必须的.

针对这种情况org-mode提供了一个 org-src-preserve-indentation, 将这个选项设置为非nil则org会保持代码块中的缩进样式.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK