保留org代码块中TAB的方法
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.
保留org代码块中TAB的方法
编辑org文件中的代码块后,在推出代码块编辑时org会自动将其中的TAB都转换为空格.
对大多数编程语言来说,这不是什么大问题,但是对于makefile来说,TAB是必须的.
针对这种情况org-mode提供了一个 org-src-preserve-indentation
, 将这个选项设置为非nil则org会保持代码块中的缩进样式.
Recommend
-
113
虽然说 3.5mm 耳机插孔还算不上是濒危物种,但旗舰机种的趋势确实是在向着移除的方向前进,包括 iPhone、Pixel 2、乃至是昨天的 U11+,都改成了要靠 USB-C 的转接线才能接 3.5mm 耳机的设计。不过一加这里决定逆势而行,除了公开确认了 5T 的存在之外(其实好像也...
-
83
对于苹果来说,iPhone干掉物理Home键采用全面屏设计后,其发展思路必然是这样,屏幕尺寸越来越大,当然机身体积并没有太大的提升,当然这也符合目前用户的实际需求。既然大趋势是这样,那么iPhoneSE的未来就略显尴尬,毕竟使用全面屏设计后,小尺寸单手持握已经不...
-
14
WordPress纯CSS Tab选项卡标签代码 最后更新 : 2020.04.04 Hot 可能用...
-
4
Org-mode中的C代码块的常用设置参数 - 暗无天日 Org-mode中的C代码块的常用设置参数 :var 变量=值 设置全局变量,变量的类型可能是 int,double,string/const char* 若值为定义的list或vector则会转换成一维...
-
5
org-mode根据不同条件tangle不同代码块 原来org-mode中代码块的参数可以是一段elisp代码,这个特性可以让我们动态tangle不同代码块,像这样(代码摘自h...
-
5
V2EX › 程序员 发现一个神奇的现象, idea 无法反编译 catch 块中带 return 的 groovy 代码 ...
-
2
函数自动提交的?pl块中如何实现多次commit与rollback? - OSCHINA - 中文开源技术交流社区 开源问答...
-
3
在Org-mode中执行Go代码 发表于 2017-06-12 ...
-
1
V2EX › Java 在 Java 代码里怎么保留字符串的原格式。
-
3
Tia Xu November 7, 2022 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK