 (defun do-org-show-all-inline-images ()
   (interactive)
   (org-display-inline-images t t))
-(global-set-key (kbd "C-c C-x C v")
-                'do-org-show-all-inline-images)
+(global-set-key (kbd "C-c C-x C-v") 'do-org-show-all-inline-images)
 
 ;; (add-hook 'org-mode-hook 'my-org-mode-autosave-settings)
 ;; (defun my-org-mode-autosave-settings ()

(setq org-agenda-files '("~/org/"))
(setq org-directory "~/org")
(setq org-mobile-inbox-for-pull "~/org/inbox.org");; new notes will be stored here
(setq org-mobile-directory "~/MobileOrg")         ;; Set to <your ownCloud root directory>/MobileOrg.

;; Set more workflow states than TODO
(setq org-todo-keywords
	  '((sequence "TODO(t)" "|" "DONE(d)" "DELEGATED(>)" "REDUNDANT(r)" )
		(sequence "GONNA(g)" "|" "DONE(d)" )))

(setq org-support-shift-select t)		

;; Automatically push changes
(defvar org-mobile-push-timer nil
  "Timer that `org-mobile-push-timer' used to reschedule itself, or nil.")

(defun org-mobile-push-with-delay (secs) 
  (when org-mobile-push-timer
    (cancel-timer org-mobile-push-timer))
  (setq org-mobile-push-timer
        (run-with-idle-timer
         (* 1 secs) nil 'org-mobile-push)))


;; org publish options
(require 'org-publish)
(setq org-publish-project-alist
      '(
		;; ... add all the components here (see below)...

		;; All org files (notes)

;;

;; TODO - put this into the background somehow.
;; (add-hook 'after-save-hook
;;  (lambda ()
;;    (when (eq major-mode 'org-mode)
;;      (dolist (file (org-mobile-files-alist))
;;        (if (string= (expand-file-name (car file)) (buffer-file-name))
