Skip to content

Instantly share code, notes, and snippets.

@tamoot
Created January 21, 2015 06:36
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 tamoot/123754f64ec86e8e4b10 to your computer and use it in GitHub Desktop.
Save tamoot/123754f64ec86e8e4b10 to your computer and use it in GitHub Desktop.
.xyzzyでのrest2html.bat実行用定義
(defun rst2html ()
(interactive)
(let* ((rst-file (get-buffer-file-name))
(html-file (concat (directory-namestring rst-file)
(pathname-name rst-file)
".html")))
(call-process (concat "D:\\App\\python_2_7_5\\python D:\\App\\python_2_7_5\\Scripts\\rst2html.py "
rst-file
" "
html-file
" --stylesheet "
"D:\\App\\python_2_7_5\\Scripts\\custom.css"))
; (call-process (concat "D:\\App\\Firefox\\firefox.exe file://" html-file) )
:show :hide)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment