diff .emacs @ 597:04dfe64d1ba7

STUB: .emacs
author Jeff Hammel <k0scist@gmail.com>
date Wed, 29 Jan 2014 12:23:55 -0800
parents 680071699d35
children ab9145ded910
line wrap: on
line diff
--- a/.emacs	Wed Jan 29 11:12:09 2014 -0800
+++ b/.emacs	Wed Jan 29 12:23:55 2014 -0800
@@ -165,6 +165,9 @@
 
     usage = '%prog [options]'
     parser = argparse.ArgumentParser(usage=usage, description=__doc__)
+    parser.add_option('input', nargs='?',
+                      type=argparse.FileType('r'), default=sys.stdin,
+                      help='input file, or read from stdin if ommitted')
     options = parser.parse_args(args)
 
 if __name__ == '__main__':
@@ -190,7 +193,7 @@
     return imp.load_source(module, dest)
 ")
 
-(fset 'mozbase-test "#!/usr/bin/env python
+(fset 'python-test "#!/usr/bin/env python
 
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,