用Emacs写blog


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

请使用浏览器的分享功能分享到微信等