diff options
author | Aaron LI <aly@aaronly.me> | 2019-05-13 13:32:05 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-05-13 13:32:05 +0800 |
commit | 88f3fbaebf4c3254ee8eac7d4fbdbb3ddc9c18fc (patch) | |
tree | 1d2441b821e32e72db54bcb34b5c85881f43bd9d /_config | |
parent | 9cd1221089d7360475bbe877ce0b6daaf1c1c67c (diff) | |
download | dotfiles-88f3fbaebf4c3254ee8eac7d4fbdbb3ddc9c18fc.tar.bz2 |
alot: Tweak config and hooks.py a bit
Diffstat (limited to '_config')
-rw-r--r-- | _config/alot/config | 2 | ||||
-rw-r--r-- | _config/alot/hooks.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/_config/alot/config b/_config/alot/config index cf68f3e..33a25f6 100644 --- a/_config/alot/config +++ b/_config/alot/config @@ -94,7 +94,7 @@ theme = solarized_light translated = ✉ [[to-me]] translated = ☻ - [[drafts]] + [[draft]] translated = ✎ [[replied]] translated = ✓ diff --git a/_config/alot/hooks.py b/_config/alot/hooks.py index 806959e..27da9fa 100644 --- a/_config/alot/hooks.py +++ b/_config/alot/hooks.py @@ -12,6 +12,7 @@ import alot # Check for missing attachment before sending # +""" async def pre_envelope_send(ui, dbm, __): p = r'.*([Aa]ttach|附件|附图|已附|所附)' e = ui.current_buffer.envelope @@ -19,6 +20,7 @@ async def pre_envelope_send(ui, dbm, __): msg = 'No attachments. Send anyway?' if not (await ui.choice(msg, select='yes')) == 'yes': raise Exception() +""" # Save marked position in search buffer |