最初的繆思

Org-mode

設定

(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;; font-lock-mode 
(add-hook 'org-mode-hook 'turn-on-font-lock)  ; Org buffers only

;;;; Setting up Remember for Org
(org-remember-insinuate)
(setq org-directory "~/org/")
(setq org-default-notes-file (concat org-directory "/remember.org"))
(define-key global-map "\C-cr" 'org-remember)

;;;; Publishing Org-mode files to HTML
; http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php
(require 'org-publish)
(setq org-publish-project-alist
      '(("A"
         :base-directory "~/org/web/"
         :base-extension "org"
         :publishing-directory "~/Publish/web/"
         :recursive t
         :publishing-function org-publish-org-to-html
         :section-numbers nil
         :table-of-contents nil
         :email nil
         :style "<link rel='stylesheet' type='text/css' href='css/style.css' />"
         :style-include-default nil
         )
        ("B"
         :base-directory "~/org/web/"
         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
         :publishing-directory "~/Publish/web/"
         :recursive t
         :publishing-function org-publish-attachment)
        ("website" :components ("A" "B"))
      ))

我的 blog:最初的地方