开发者

Joining the automatically broken lines by org-mode

With emacs/org-mode, I use [[link][display]] format to show and link whatever necessary. The problem is that sometimes, the automatic formatter kicks in, and break the line to have an ugly link as follows.

Joining the automatically broken lines by org-mode

The solution can be (1) remove the leading blanks of the second line, and (2) join the first and second string.

Joining the automatically broken lines by org-mode

How can I do that with emacs or org-mode? If org-mode has a solution to this problem, it would be better, as I don't nee开发者_StackOverflow社区d to delete [ or ] to make it editable.


Your first solution is available as delete-indentation:

M-^ runs the command delete-indentation, which is an interactive compiled Lisp function in `simple.el'.

It is bound to M-^.

(delete-indentation &optional ARG)

Join this line to previous and fix up whitespace at join. If there is a fill prefix, delete it from the beginning of this line. With argument, join this line to following line.

With point on the second line, M-^ will remove the leading whitespace on the second line, the trailing whitespace on the first line, and join the two lines together.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜