summaryrefslogtreecommitdiff
path: root/.mutt/muttrc
blob: 3b413ecca63f73bbd33465687b99a9d6be448c86 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Folders
set folder           = ~/.mail
set alias_file       = ~/.mutt/alias
set header_cache     = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set mailcap_path     = ~/.mutt/mailcap
set signature        = ~/.mutt/signature
set tmpdir           = ~/.mutt/temp

# Source crypto, aliases, mailboxes
source ~/.mutt/crypto
source ~/.mutt/alias
source ~/.mutt/mailboxes
source ~/.mutt/id_work

# General information
set realname = "Urbain Vaes"
set reverse_alias
set sort = reverse-date
set weed
set fcc_clear
unset markers

# Encryption
set crypt_autosign = no
set crypt_replyencrypt = yes
set pgp_auto_decode = yes
set pgp_autosign = no
set pgp_sign_as = 716064C0
set pgp_use_gpg_agent = yes
set pgp_timeout = 3600

# Sidebar
set sidebar_width=26
set sidebar_visible = yes
set sidebar_delim='|'
bind index,pager \Cn sidebar-next
bind index,pager \Cp sidebar-prev
bind index,pager O sidebar-open

# Prompts
set delete = yes
set quit = yes

# Pager
set pager_stop
set pager_index_lines = 10

# HTML messages
auto_view text/html
alternative_order text/plain text/enriched text/html

# Editor
set editor="vim"
set include=yes

# Macros
macro index,pager gm "<change-folder> +Main/Main<enter>" 
macro index,pager gp "<change-folder> +Personal/Personal<enter>" 
macro index,pager gi "<change-folder> +Informal/Informal<enter>" 
macro index,pager gw "<change-folder> +Work/Work<enter>" 

# Key bindings
bind index,pager \Cf next-page
bind index,pager \Cb previous-page
bind index,pager \Cu next-unread-mailbox

bind index gg first-entry
bind index G last-entry
bind index i flag-message

bind pager \Ce next-line
bind pager \Cy previous-line
bind pager j next-entry
bind pager k previous-entry
bind pager R group-reply

# Hooks
send-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_work'
reply-hook '~t .*@imperial\.ac\.uk$' 'source ~/.mutt/id_work'

folder-hook 'Main*'     'source ~/.mutt/id_main'
folder-hook 'Informal*' 'source ~/.mutt/id_informal'
folder-hook 'Personal*'  'source ~/.mutt/id_personal'
folder-hook 'Work*'     'source ~/.mutt/id_work'

# Source mutt solarized
`[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set`
`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set`
`[ "$COLORSCHEME" = "default" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set`