 (global-set-key "\C-cb" 'org-iswitchb)
 (setq org-log-done t)
 
+(defvar dcn/org-directory "~/Dropbox/org/")
 (setq org-capture-templates
-      '(("t" "Todo" entry (file+headline "~/Dropbox/org/todo.org" "Tasks")
-         "* TODO %?\n%i\nAdded on %U")
-        ("l" "Todo with link" entry (file+headline "~/Dropbox/org/todo.org" "Tasks")
-         "* TODO %?\n%i\n%a\nAdded on %U")
-        ("j" "Journal" entry (file+datetree "~/Dropbox/org/journal.org")
-         "* %?\n%i\nEntered on %U")))
-(find-file "~/Dropbox/org/todo.org")
+      '(("t" "Todo" entry (file+headline (concat dcn/org-directory "todo.org") "Tasks")
+         "* TODO %?\nCREATED: %U")
+        ("l" "Todo with link" entry (file+headline (concat dcn/org-directory "todo.org") "Tasks")
+         "* TODO %?\n%a\nCREATED: %U")
+        ("j" "Journal" entry (file+datetree (concat dcn/org-directory "journal.org"))
+         "* %?\n%i\nCREATED: %U")))
+(find-file (concat dcn/org-directory "todo.org"))
 
 ;; Require flycheck
-;;(require-package 'flycheck)
+;;(dcn/require-package 'flycheck)
 ;;(add-hook 'after-init-hood #'global-flycheck-mode)
 
 ;; Lisp settings
 (setq lisp-body-indent 4)
 
 ;; Coffeescript settings
-(require-package 'coffee-mode)
+(dcn/require-package 'coffee-mode)
 (custom-set-variables '(coffee-tab-width 4))
        (package-install package)
      (progn
        (package-refresh-contents)
        (require-package package min-version t)))))

(package-initialize)

;; Load solarized theme
(require-package 'color-theme-solarized)
(load-theme 'solarized-dark t)

;; Remove splash screen

(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/") t)

(defun dcn/require-package (package &optional min-version no-refresh)
  "Install given PACKAGE, optionally requiring MIN-VERSION.
If NO-REFRESH is non-nil, the available package lists will not be
re-downloaded in order to locate PACKAGE."
