;;; markdown-conf.el -- Settings for markdown-mode.
(eval-when-compile (require 'markdown-mode))

(setq markdown-command "pandoc -f markdown -t html"
      markdown-follow-wiki-link-on-enter nil)

(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)

  ;; Files in /tmp that are *.txt are from my browser and most
  ;; websites don't like it when text you submit has newlines.
  (when (string-match "^/tmp/.*\\.txt$" (buffer-file-name))
    (longlines-mode)))

(add-hook 'markdown-mode-hook 'whitespace-mode)
(add-hook 'markdown-mode-hook 'pjones:markdown-mode-hook)

;;; markdown-conf.el -- Settings for markdown-mode.
(eval-when-compile
  (require 'markdown-mode))

(setq markdown-command "pandoc -f markdown -t html"
      markdown-follow-wiki-link-on-enter nil)

(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)

  ;; Files in /tmp that are *.txt are from my browser and most
  ;; websites don't like it when text you submit has newlines.
  (when (string-match "^/tmp/.*\\.txt$" (buffer-file-name))
    (visual-line-mode)))

(add-hook 'markdown-mode-hook 'whitespace-mode)
(add-hook 'markdown-mode-hook 'pjones:markdown-mode-hook)

Use visual-line-mode instead of the deprecated longlines-mode
Emacs: Use visual-line-mode instead of the deprecated longlines-mode

pjones/emacsrc