Skip to content

Instantly share code, notes, and snippets.

@suzuki
Created March 30, 2015 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki/0fccce250acf7164477b to your computer and use it in GitHub Desktop.
Save suzuki/0fccce250acf7164477b to your computer and use it in GitHub Desktop.
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