view 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
line wrap: on
line source
1 #!/usr/bin/env python
3 import subprocess
4 import sys
6 target_file = sys.argv[1]
8 command = "emacs -batch " + \
9 target_file + \
10 " --eval '(kill-comment (point-min) (point-max) nil)' -f save-buffer"
12 print command
13 subprocess.call(command, shell=True)