diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/kill-comments	Tue Jul 27 22:23:13 2010 -0400
     1.3 @@ -0,0 +1,13 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +import subprocess
     1.7 +import sys
     1.8 +
     1.9 +target_file = sys.argv[1]
    1.10 +
    1.11 +command =   "emacs -batch " + \
    1.12 +    target_file + \
    1.13 +    " --eval '(kill-comment (point-min) (point-max) nil)' -f save-buffer"
    1.14 +
    1.15 +print command
    1.16 +subprocess.call(command, shell=True)