Use Samuel\'s code. Add font-lock stuff to highlight error or success