annotate kill-comments @ 102:8ed3394e6b73 laserkard

wrote comment-killer
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Jul 2010 22:23:13 -0400
parents
children 52297178e0eb
rev   line source
rlm@102 1 #!/usr/bin/env python
rlm@102 2
rlm@102 3 import subprocess
rlm@102 4 import sys
rlm@102 5
rlm@102 6 target_file = sys.argv[1]
rlm@102 7
rlm@102 8 command = "emacs -batch " + \
rlm@102 9 target_file + \
rlm@102 10 " --eval '(kill-comment (point-min) (point-max) nil)' -f save-buffer"
rlm@102 11
rlm@102 12 print command
rlm@102 13 subprocess.call(command, shell=True)