configuration/config/alot/hooks.py

12 lines
243 B
Python
Raw Normal View History

2017-04-27 18:51:18 +02:00
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()