 (require 'htmlize)
 (require 'org-bullets)
 (require 'org-super-agenda)
+(require 'org-habit)
+
 ;;w(require 'ox-reveal)
 
 (setq org-agenda-archives-mode t)

  (let ((multi-term-program "rsync-copy ~/Documents/publics/* root@leonhe.me:/var/www/html/"))
                   (multi-term))
  )
(defun eiio/omnifoucs()
  (interactive)
  (progn
    (setq outData (shell-command-to-string "osascript -l JavaScript ~/Documents/OminfocusTask.scpt"))    
    ;;(message (split-string outData))

  ))

(setq org-agenda-include-diary t)
(global-set-key (kbd "C-c o i") 'eiio/omnifoucs)
;;org-super agenda
;; Do not dim blocked tasks
(setq org-agenda-dim-blocked-tasks nil)

(setq org-agenda-custom-commands
      '(("n" "Next Action"
         (
          (agenda "" ((org-agenda-span 1)))
          ;;(agenda "" ((org-agenda-span 7))) ;review upcoming deadlines and appointments
          (tags-todo "+PRIORITY=\"A\"")
	  (todo "NEXT") ;; exports block to this file with C-c a e
	  )
	  nil                      ;; i.e., no local settings
         ("~/next-actions.html"))
        ("w" todo "WAITING")
        ("W" "Weekly Review"
         ((agenda "" ((org-agenda-span 7))); review upcoming deadlines and appointments
                                        ; type "l" in the agenda to review logged items 
          (stuck "") ; review stuck projects as designated by org-stuck-projects
          (todo "NEXT") ; review someday/maybe items
          (todo "WAITING"))) ; review waiting items
         ;; ...other commands here
        
        ))
(provide 'init-org-mode)
;;; init-org-mode.el ends here

;;设置关键字颜色
(setq org-todo-keyword-faces
      (quote (("TODO" :foreground "red" :weight bold)
	      ;;("NEXT" :foreground "yellow" :weight bold)
	      ;;("DOING" :foreground "orange" :weight bold)
	      ("DONE" :foreground "forest green" :weight bold)
	      ("WAITING" :foreground "orange" :weight bold)
;;	      ("HOLD" :foreground "magenta" :weight bold)
	      ("CANCELLED" :foreground "#F0F0F0" :weight bold)
	      )))
;; (defun org-summary-todo (n-done n-not-done)
