Skip to content

Instantly share code, notes, and snippets.

@yasuyk
Created January 16, 2013 09:45
Show Gist options
  • Save yasuyk/4545953 to your computer and use it in GitHub Desktop.
Save yasuyk/4545953 to your computer and use it in GitHub Desktop.
emacsで編集中のmarkdownをmarkedでプレビューする
;; from http://support.markedapp.com/kb/how-to-tips-and-tricks/marked-bonus-pack-scripts-commands-and-bundles
(defun markdown-preview-file ()
"run Marked on the current file and revert the buffer"
(interactive)
(shell-command
(format "open -a /Applications/Marked.app %s"
(shell-quote-argument (buffer-file-name))))
)
(global-set-key "\C-cm" 'markdown-preview-file)
@ngn999
Copy link

ngn999 commented Jun 3, 2013

thanks, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment