Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 emacs/org-mode,我使用[[link][display]]格式来显示和链接任何必要的内容。问题是,有时,自动格式化程序会启动,并打破线路以具有如下丑陋的链接。
[[link][display]]
解决方案可以是(1)删除第二行的前导空格,以及(2)连接第一个和第二个字符串。
如何使用 emacs 或 org-mode 做到这一点?如果 org-mode 有解决这个问题的方法,那就更好了,因为我不需要删除[或]使其可编辑。
[
]
您的第一个解决方案可用作删除缩进:
M-^ 运行命令 delete-indentation,它是 `simple.el' 中的交互式编译 Lisp 函数。 它绑定到 M-^。 (delete-indentation & optional ARG) 将此行加入上一行并在加入时修复空白。如果有填充前缀,则从该行的开头将其删除。使用参数,将此行加入下一行。
M-^ 运行命令 delete-indentation,它是 `simple.el' 中的交互式编译 Lisp 函数。
它绑定到 M-^。
(delete-indentation & optional ARG)
将此行加入上一行并在加入时修复空白。如果有填充前缀,则从该行的开头将其删除。使用参数,将此行加入下一行。
在第二行使用点,M-^ 将删除第二行的前导空格,第一行的尾随空格,并将两行连接在一起。