Created
January 29, 2013 15:17
-
-
Save mattsears/4665009 to your computer and use it in GitHub Desktop.
Revisions
-
mattsears created this gist
Jan 29, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ;; This function will open Marked.app and monitor the current markdown document ;; for anything changes. In other words, it will live reload and convert the ;; markdown documment (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)