 (custom-set-variables
  '(markdown-reference-location 'end)
  '(markdown-command "nix-shell -p pandoc --run 'pandoc -f markdown -t html'"))
-
 
 (defvar pjones:markdown-attachments-directory
   "attachments"

     (file-name-nondirectory name)
     (file-relative-name dest))))

(defun pjones:markdown-mode-hook ()
  "Set up key bindings and other crap for markdown-mode."
  (local-set-key (kbd "C-c C-o") 'markdown-follow-link-at-point)
  (local-set-key (kbd "C-c C-a") 'pjones:markdown-attach-file)
  (abbrev-mode)
  (whitespace-mode)
  (orgstruct-mode)

                                   company-dabbrev))

  (define-abbrev-table 'markdown-mode-abbrev-table
    '(("fn" "" pjones:markdown-slide-notes)
      ("fc" "" pjones:markdown-slide-fenced-code-block)
      ("fi" "" pjones:markdown-slide-fenced-code-insert)))
  (setq local-abbrev-table markdown-mode-abbrev-table)
