Created
April 27, 2012 17:15
-
-
Save genedelisa/2510939 to your computer and use it in GitHub Desktop.
Markdown config in Emacs init.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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