ratatata
V2EX  ›  问与答

一个关于 Emacs 的 auto-fill-mode 的问题

  •  
  •   ratatata · Apr 1, 2014 · 3284 views
    This topic created in 4428 days ago, the information mentioned may be changed or developed.
    auto-fill-mode 会在一行字符大于默认值的时候自动增加一个 newline。我现在的需求是在 auto-fill-mode 下写 Markdown(看的比较爽),写完后用 pandoc 转为 HTML(上传至服务器)。但是在转换过程中,这种自动增加的 newline 会变成一个空格,导致连续的文本断裂。

    想请教各位 Emacs guru,用什么方法才能在 Emacs 中把 auto-fill-mode 下的这种长文本行转换为一整条连续的文本行?我用 replace-regexp 不知道如何去匹配末尾的 newline 字符。\n$ 貌似行不通。
    1 replies    1970-01-01 08:00:00 +08:00
    lululau
        1
    lululau  
       Apr 1, 2014
    输入换行符的方法为: Ctrl-q Ctrl-j
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2403 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:11 · PVG 00:11 · LAX 09:11 · JFK 12:11
    ♥ Do have faith in what you're doing.