configuration/config/alot/hooks.py
2017-05-09 08:53:03 +02:00

12 lines
243 B
Python

from alot.commands.globals import ExternalCommand
def loop_hook(ui=None):
ui.apply_command(ExternalCommand(
["notmuch", "new", "--quiet"],
thread=True,
))
if ui and ui.current_buffer:
ui.update()