 (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
 (add-to-list 'auto-mode-alist '("\\.ledger\\'" . ledger-mode))
 (add-to-list 'auto-mode-alist '("\\.less\\'" . less-css-mode))
-(add-to-list 'auto-mode-alist '("\\.mako\\'" . html-mode))
+(add-to-list 'auto-mode-alist '("\\.html\\'" . html-mode))
 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
 (add-to-list 'auto-mode-alist '("\\.scss\\'" . css-mode))
-(add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode))
+;;(add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode))
 (add-to-list 'auto-mode-alist '("\\.wf\\'" . yaml-mode))
 (add-to-list 'auto-mode-alist '("mutt-.*-" . mail-mode))
 

(add-hook 'magit-log-edit-mode-hook 'flyspell-mode)

;; org-mode
(setq org-agenda-files `("~/Notes/todo.org" "~/Notes/work.org")
      org-agenda-timegrid-use-ampm 1 ;; 12hr format for agenda view
      org-default-notes-file "~/Notes/todo.org"
      org-directory "~/Notes"
      org-log-done 'time
      org-return-follows-link t
      org-src-fontify-natively t
      org-startup-folded nil
      org-capture-templates
      '(("t" "Add personal todo" entry (file+headline "~/Notes/todo.org" "Tasks")
         "* TODO %?\n  %i"
         :kill-buffer t
         :empty-lines 1)

        ("w" "Add a work todo" entry (file+headline "~/Notes/work.org" "Tasks")
         "* TODO %?\n  %i"
         :kill-buffer t)

        ("r" "Refile" plain (file "~/Notes/refile.org")
         "%?\n %i"
         :kill-buffer t)

        ("j" "Journal" plain (file (format "%s%s.org" "~/Notes/Journal/"
                                           (format-time-string "%d %m %Y")))
         "%U\n\n%?%i"
         :kill-buffer t
         :unnarrowed t
         )))

(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c r") 'org-capture)
;; org-indent is messing up layout once in a while.
;; (add-hook 'org-mode-hook 'org-indent-mode)

;; org-present mode
(defvar org-present-text-scale 10)
(add-hook 'org-present-mode-hook (lambda ()
                                   (linum-mode -1)
                                   (org-present-big)
                                   (org-display-inline-images)))

(add-hook 'org-present-mode-quit-hook (lambda ()
                                        (linum-mode t)
                                        (org-present-small)
                                        (org-remove-inline-images)))

;; Projectile mode
(projectile-global-mode)
(setq projectile-mode-line
      (quote (:eval (format " [ρ %s]" (projectile-project-name)))))


;; Python mode

(ac-flyspell-workaround)
(global-set-key (kbd "M-/") 'auto-complete)
(add-to-list 'ac-modes 'git-commit-mode)
;;(add-to-list 'ac-modes 'org-mode)

;; bookmarks
(defun ido-bookmark-jump ()
