簡體   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