Mercurial > hg > config
comparison .emacs @ 644:b4dc72b7c5c3
string types
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 11 Mar 2014 14:38:35 -0700 |
parents | 15c20cfc6b22 |
children | c2e89dafa397 |
comparison
equal
deleted
inserted
replaced
643:a5cd31e0b8e7 | 644:b4dc72b7c5c3 |
---|---|
159 import os | 159 import os |
160 import subprocess | 160 import subprocess |
161 import sys | 161 import sys |
162 | 162 |
163 here = os.path.dirname(os.path.realpath(__file__)) | 163 here = os.path.dirname(os.path.realpath(__file__)) |
164 string = (str, unicode) | |
164 | 165 |
165 def main(args=sys.argv[1:]): | 166 def main(args=sys.argv[1:]): |
166 | 167 |
167 parser = argparse.ArgumentParser(description=__doc__) | 168 parser = argparse.ArgumentParser(description=__doc__) |
168 parser.add_argument('input', nargs='?', | 169 parser.add_argument('input', nargs='?', |
171 options = parser.parse_args(args) | 172 options = parser.parse_args(args) |
172 | 173 |
173 if __name__ == '__main__': | 174 if __name__ == '__main__': |
174 main()") | 175 main()") |
175 ;; TODO: take directly from MakeItSo | 176 ;; TODO: take directly from MakeItSo |
177 ;; - makeitso should output .el files from the templates | |
176 | 178 |
177 (fset 'python-require "def require(url): | 179 (fset 'python-require "def require(url): |
178 # http://k0s.org/hg/config/file/68635bbb3d3e/python/require.py | 180 # http://k0s.org/hg/config/file/68635bbb3d3e/python/require.py |
179 # import a module from the web | 181 # import a module from the web |
180 # url should be like scheme://host.name/path/to/module.py | 182 # url should be like scheme://host.name/path/to/module.py |