This is a petty annoyance, but those add up.

After I’ve been using guard, it leaves the last status notification on my emacs mode line, so I want to reset it so I can stop thinking about the project for a while.

I found something like this and wrote it for my needs:

I save the script in my $HOME/bin/ folder and can call it from the command line to clean up my emacs mode line.