【问题标题】:Emacs org-mode export markdownEmacs 组织模式导出降价
【发布时间】:2014-05-24 03:54:37
【问题描述】:

我有一些奇怪的行为,我实际上不知道这是一个错误还是其他什么。 当我执行C-c C-e 时,不会出现转换为降价的选项。尽管如此,我还是可以输入选项M-x org-md-export-as-markdown,然后,在C-c C-e 菜单中会出现导出到markdown 的选项。

有什么想法吗?

【问题讨论】:

    标签: emacs markdown org-mode emacs24


    【解决方案1】:

    如果您使用的是 Org-mode 8.0 或更高版本(请与 M-x org-version 确认),导出框架为 broken up into several libraries,默认情况下不一定会加载。

    在你的 Emacs 配置中这样的东西可以使用 Org-mode 自动加载 Markdown 导出器:

    (eval-after-load "org"
      '(require 'ox-md nil t))
    

    【讨论】:

    • 也适用于“ox-odt”...谢谢!
    【解决方案2】:

    在 emacs 25 之后,你只需要在你的 emacs 配置文件中添加一行:.emacs

    (require 'ox-md nil t)
    

    【讨论】:

    • 你可以在emacs24中做同样的事情,但是eval-after-load被使用了,所以它只能在org-mode被加载之后才能被加载。
    • … 或在 emacs 已经运行时在 M-: 中运行 (require 'ox-md nil t)
    【解决方案3】:

    M-x 自定义变量 org-export-backends

    检查选项'md',然后保存。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多