Created
March 30, 2015 22:54
-
-
Save suzuki/0fccce250acf7164477b to your computer and use it in GitHub Desktop.
markdown-mode (gfm-mode)
This file contains hidden or 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
(require 'markdown-mode) | |
(setq my-markdown-gfm-command "/usr/local/bin/marked") | |
(setq my-markdown-command "/usr/local/bin/markdown") | |
(cond | |
((file-exists-p my-markdown-gfm-command) | |
(setq markdown-command my-markdown-gfm-command) | |
(setq markdown-command-needs-filename t)) | |
((file-exists-p my-markdown-command) | |
(setq markdown-command my-markdown-command))) | |
(add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode)) | |
(add-hook 'visual-line-mode-hook | |
'(lambda() | |
(setq word-wrap nil))) | |
(add-hook 'gfm-mode-hook | |
'(lambda() | |
(setq indent-tabs-mode nil) | |
(setq tab-width 4))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment