add self_defined_func.el and did some modification.