 (use-package markdown-mode
   :ensure t
   :config
-  (setq markdown-command "pandoc --from markdown_github-hard_line_breaks --to html")
-  (define-key markdown-mode-map (kbd "C-\\")  'markdown-insert-list-item)
-  (define-key markdown-mode-map (kbd "C-c 1") 'markdown-insert-header-atx-1)
-  (define-key markdown-mode-map (kbd "C-c 2") 'markdown-insert-header-atx-2)
-  (define-key markdown-mode-map (kbd "C-c 3") 'markdown-insert-header-atx-3)
-  (define-key markdown-mode-map (kbd "C-c 4") 'markdown-insert-header-atx-4)
-  (define-key markdown-mode-map (kbd "C-c 5") 'markdown-insert-header-atx-5)
-  (define-key markdown-mode-map (kbd "C-c 6") 'markdown-insert-header-atx-6))
+  ;; (setq markdown-command "pandoc --from markdown_github-hard_line_breaks --to html")
+  ;; (define-key markdown-mode-map (kbd "C-\\")  'markdown-insert-list-item)
+  ;; (define-key markdown-mode-map (kbd "C-c 1") 'markdown-insert-header-atx-1)
+  ;; (define-key markdown-mode-map (kbd "C-c 2") 'markdown-insert-header-atx-2)
+  ;; (define-key markdown-mode-map (kbd "C-c 3") 'markdown-insert-header-atx-3)
+  ;; (define-key markdown-mode-map (kbd "C-c 4") 'markdown-insert-header-atx-4)
+  ;; (define-key markdown-mode-map (kbd "C-c 5") 'markdown-insert-header-atx-5)
+  ;; (define-key markdown-mode-map (kbd "C-c 6") 'markdown-insert-header-atx-6)
+  )
+
+(use-package pandoc-mode
+  :ensure
+  :after (markdown-mode)
+  :config
+  (pandoc-load-default-settings)
+  (add-hook 'markdown-mode-hook 'pandoc-mode))
 
 (use-package markdown-preview-mode
   :ensure t

            (lambda ()
              (setq markdown-preview-template
                    (expand-file-name
                      "~/.emacs.d/markdown-preview.html"
                      user-emacs-directory))
              (setq markdown-preview-style
                    "http://aaronbieber.com/assets/styles/github-markdown.css"))))


(require 'init-fonts)
(require 'init-gtags)
(require 'init-evil)
(require 'init-w3m)
(require 'init-powerline)
(require 'init-flycheck)
(require 'init-tmux)
(require 'i3)
(require 'i3-integration)

;;; Load my programming languages
(require 'init-org)
(require 'init-python)
(require 'init-lisp)
(require 'init-common-lisp)
