#! /usr/bin/python

import os, time, shutil


t = time.localtime(time.time()) 
fname = time.strftime(".todo/past/todo_%m-%d-%y_%H:%M.txt",t) 
todo = ".todo/todo.txt"

if not os.path.isfile(todo):
   file = open(todo, "w")
   file.write("TODO")
   file.close()
else:
   shutil.copyfile(todo, fname)
   
os.system("emacs "+ todo)


