繁体   English   中英

emacs org-mode:htmlize在导出的html中留下关键字

[英]emacs org-mode: htmlize leaves keywords in exported html

我没有使用Cc Ce hh在org-mode html-export中保持源代码块的语法高亮显示,所以我切换到了htmlize,如此处其他文章中所建议的那样。 手动执行Mx htmlize-buffer效果很好,除了它在导出的html中保留所有以#+开头的组织模式关键字的事实。 我现在在emacs 24.3.1中尝试了组织模式7.x以及8.2.5。 我已经考虑过编写简短的python脚本来解决此问题,但是也许有人知道更快的解决方案?

TNX有很多建议

巴里奥斯

  1. 从git设置组织模式。
    mkdir ~/git
    cd ~/git
    git clone git://orgmode.org/org-mode.git
    cd org-mode
    make up2

2.(可选)编辑~/git/org-mode/local.mk 我已经设定

    lispdir= ~/Dropbox/source/site-lisp/org

3.使用内容创建~/tinit.el

    (add-to-list 'load-path "~/Dropbox/source/site-lisp/org")
    (require 'org)

4.用

    emacs -Q -l ~/tinit.el ~/foo.org

如果一切正常, ~/tinit.el合并到您的配置中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM