ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 用Emacs写blog

用Emacs写blog

原创 Linux操作系统 作者:iori0402 时间:2011-01-03 18:22:25 0 删除 编辑


Table of Contents

1 用Emacs写blog

1.1 使用Org-mode

1.1.1 配置Emacs

(setq note-root-dir "~/note")
(setq note-publish-dir "~/note_publish")

(setq org-publish-project-alist
      `(("note-org"
         :base-directory ,note-root-dir
         :publishing-directory ,note-publish-dir
         :base-extension "org"
         :recursive t
         :publishing-function org-publish-org-to-html
         :auto-index t
         :index-filename "index.org"
         :index-title "index"
         :link-home "index.html")
        ("note-static"
         :base-directory ,note-root-dir
         :publishing-directory ,note-publish-dir
         :recursive t
         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|swf\\|zip\\|gz\\|txt\\|el"
         :publishing-function org-publish-attachment)
        ("note" :components ("note-org" "note-static"))))

Author: Shine Zhong 

Date: 2011-01-03 22:32:56 CST

HTML generated by org-mode 6.33x in emacs 23

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/737564/viewspace-683197/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2011-01-03

  • 博文量
    9
  • 访问量
    15057