-
Notifications
You must be signed in to change notification settings - Fork 0
/
neomuttrc
68 lines (57 loc) · 2.84 KB
/
neomuttrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Folder hooks for different accounts
folder-hook Personal source $XDG_CONFIG_HOME/neomutt/personal/neomuttrc
folder-hook Work source $XDG_CONFIG_HOME/neomutt/work/neomuttrc
# Default folders
set folder = ~/Mail
set spoolfile = +Work/INBOX
# Cache folders, using these will speed up mutt
set header_cache = $XDG_CACHE_HOME/neomutt
set message_cachedir = $XDG_CACHE_HOME/neomutt
set tmpdir = $XDG_CACHE_HOME/neomutt
# Options
unset help # remove top help bar
unset markers # don't add markers on wrapped lines
unset confirmappend # don't ask just move
unset wait_key # skip message when return code is 0
unset mark_old # don't mark mails as old, don't use it
set fast_reply # don't ask just reply
set include # include message replied to
set pager_stop # don't move to next mail
set pager_index_lines = 6 # show mini index in pager
set delete # delete when I delete dammit
set move # move read mail to archive
set keep_flagged # don't move flagged mail to archive
set realname = "Martin Lundberg"
set wrap = 78
set sort = threads
set timeout = 30
set sleep_time = 0 # Don't pause when switching between folders
set ts_enabled
set ts_status_format = "neomutt%?n?*?"
set mail_check_stats
set mail_check_stats_interval = 15
# Remove '#' from the default quote regex because it colored C import
# statements in e-mails with diffs
set quote_regex = "^([ \t]*[>])+"
# Remove number column from default format and add weekday and time
set index_format = "%Z %{%a %F %R} %-30.30L %s"
# Auto view HTML inside mutt pager but prefer text
auto_view text/calendar text/html
alternative_order text/calendar text/plain text/html
# Keybindings
bind pager k previous-line
bind pager j next-line
bind pager \cu half-up
bind pager \cd half-down
# Light theme before 18 and dark theme after
# source `TIME=$(date +%H) FILE=$XDG_CONFIG_HOME/neomutt/lightthemerc; if [ $TIME -ge 16 ]; then FILE=$XDG_CONFIG_HOME/neomutt/darkthemerc;fi; echo "$FILE"`
source ~/.config/neomutt/darkthemerc
# 'L' performs a notmuch query, showing only the results
macro index L <vfolder-from-query> "Search mailbox"
bind index,pager = entire-thread
macro index \'a "<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all new as read"
macro index \'c '<tag-pattern>~b"pushed new commits"<enter><tag-prefix><delete-message><untag-pattern>.<enter>' "cleanup gitlab rebases"
macro index,pager <f1> '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/work/neomuttrc<enter><change-folder>!<enter>'
macro index,pager <f2> '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/personal/neomuttrc<enter><change-folder>!<enter>'
# Show mutt version on start
push V