Created
January 16, 2013 09:45
-
-
Save yasuyk/4545953 to your computer and use it in GitHub Desktop.
emacsで編集中のmarkdownをmarkedでプレビューする
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
;; 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, it works.