Skip to content

Instantly share code, notes, and snippets.

@suzuki suzuki/init.el

Created Mar 30, 2015
Embed
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")
(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
You can’t perform that action at this time.