Skip to content

Instantly share code, notes, and snippets.



Created Mar 30, 2015
What would you like to do?
markdown-mode (gfm-mode)
(require 'markdown-mode)
(setq my-markdown-gfm-command "/usr/local/bin/marked")
(setq my-markdown-command "/usr/local/bin/markdown")
((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
(setq word-wrap nil)))
(add-hook 'gfm-mode-hook
(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