I made a modification in org-pomodoro to send the mode line to a pipe which I use in xmobar, but it keeps spamming my *Messages* buffer, thus making the line which displays it almost useless.

 (concat "\ue003 "

I inserted the expression above in the "tick" function and everything is working as expected. Initially I made a shell script, but I think implementing the logic inside Emacs is a better solution, since I'm using org-pomodoro.

1 Answer 1


it keeps spamming my *Messages* buffer

I assume you're referring to the "Wrote FILENAME" message that write-region emits. This message can be inhibited by giving it a non-boolean, non-string value as the 5th VISIT argument. From the docstring of write-region:

If VISIT is neither t nor nil nor a string, or if Emacs is in batch mode,
  do not display the "Wrote file" message.

This is also documented in the Elisp manual under (elisp) Writing to Files.

So, you could write something like the following:

(write-region (concat "\ue003 "
              nil "/tmp/.todo-pipe"
              nil 'quiet)
  • Thanks! That's it, I didn't noticed that when I was reading the documentation.
    – user21917
    Mar 21, 2019 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.