Skip to content

Instantly share code, notes, and snippets.

@genedelisa
Created April 27, 2012 17:15
Show Gist options
  • Save genedelisa/2510939 to your computer and use it in GitHub Desktop.
Save genedelisa/2510939 to your computer and use it in GitHub Desktop.
Markdown config in Emacs init.el
;;; Markdown
(defun turn-on-outline-minor-mode ()
(outline-minor-mode 1))
(when (require 'markdown-mode nil 'noerror)
(setq auto-mode-alist
(cons '("\\.md" . markdown-mode) auto-mode-alist))
(setq auto-mode-alist
(cons '("\\.markdown" . markdown-mode) auto-mode-alist))
(setq markdown-command "/usr/local/bin/Markdown.pl")
(add-hook 'markdown-mode-hook
(lambda () (setq comment-auto-fill-only-comments nil)))
(add-hook 'markdown-mode-hook 'turn-on-outline-minor-mode)
(add-hook 'markdown-mode-hook 'turn-on-visual-line-mode)
)
;;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment