 (eval-after-load 'php-mode
   '(require 'php-ext))
 
+(load-theme 'solarized-light)
 
 ;;;
 ;;; Org Mode

 )

(menu-bar-mode 0)


(require 'package)

(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;; The following lines are always needed. Choose your own keys.
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
;(require 'org-latex)
(unless (boundp 'org-export-latex-classes)
  (setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
             '("article"
               "\\documentclass{article}"
               ("\\section{%s}" . "\\section*{%s}")))  

(setq Tex-auto-save t) ;I forget what these do, I've 
(setq TeX-parse-self t) ;always had them 
;(require 'tex-mik) 
;(load "auctex.el" nil t t) ;Now necessary with latest  
            ;version of AucTeX 
(setq org-export-with-LaTeX-fragments "dvipng") ;Now necessary with  
            ;orgmove version 7.4  
            ;or later 

(setq org-log-done 'time)
(setq org-log-done 'note)
(setq url-proxy-services '(("no_proxy" . "work\\.com")
                           ("http" . "127.0.0.1:8123")))

(setq twittering-use-master-password t)

(tool-bar-mode nil)

(setq org2blog/wp-blog-alist
       '(("ruili"
          :url "http://beta.rui.li/xmlrpc.php"
          :username "tshwangq"
          :default-title "Hello World"
          :default-categories ("org2blog" "emacs")
          :tags-as-categories nil)
         ))
 (setq org2blog/wp-buffer-template
  "-----------------------
 #+TITLE: %s
 #+DATE: %s
 -----------------------\n")

 (defun my-format-function (format-string)
    (format format-string
            org2blog/wp-default-title
            (format-time-string "%d-%m-%Y" (current-time))))
 (setq org2blog/wp-buffer-format-function 'my-format-function)



(setq org-todo-keywords
    '((sequence "TODO(t!)" "NEXT(n)" "WAITTING(w)" "SOMEDAY(s)" "|" "DONE(d@/!)" "ABORT(a@/!)")
     ))  

(setq org-directory "~/workspace/gtd") 
(setq org-remember-templates 
      '(("New" ?n "* %? %t \n %i\n %a" "~/workspace/gtd/journal.org" ) 
	("Task" ?t "** TODO %?\n %i\n %a" "~/workspace/gtd/gtd.org" "Tasks") 
	("Calendar" ?c "** TODO %?\n %i\n %a" "~/workspace/gtd/gtd.org" "Tasks") 
	("Todo" ?t "* TODO %^{Brief Description} %^g\n%?\nAdded: %U" "~/workspace/gtd.org" "Tasks") 
	("Idea" ?i "** %?\n %i\n %a" "~/workspace/gtd/someday.org" "Ideas") 
	("Note" ?r "* %?\n %i\n %a" "~/workspace/gtd/journal.org" ) 
 ("Daily Review" ?a "** %t :COACH: \n%[~/workspace/gtd/.daily_review.txt]\n" 
    "~/workspace/journal.org")
 ("Daily Baby Review" ?b "** %t :Daily: \n%[~/workspace/gtd/.daily_baby_review.txt]\n" 
    "~/workspace/baby.org")
	("Project" ?p "** %?\n %i\n %a" "~/workspace/gtd/gtd.org" %g) )) 

(setq org-default-notes-file (concat org-directory "journal.org"))

(setq org-agenda-files (list "~/workspace/gtd/gtd.org"
                     "~/workspace/gtd/journal.org"
                     "~/workspace/gtd/birthday.org"
	         "~/workspace/gtd/someday.org"))

(setq org-agenda-custom-commands
'(("k" "work haha"
((agenda "")
(tags-todo "work")
(tags-todo "支持")))))

