diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-29 11:14:15 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-29 11:14:15 +0100 |
commit | ae8d046ce42867fc3a91fa86eedab3f9674d74bb (patch) | |
tree | f8cdb8b9778da4d45f9272b13268df996b07049d | |
parent | abbbe1f416bb7db9544ddf7ed554ec8daeda0827 (diff) |
improve neomutt config
-rw-r--r-- | .config/mailcap | 7 | ||||
-rw-r--r-- | .config/neomutt/neomuttrc | 45 |
2 files changed, 37 insertions, 15 deletions
diff --git a/.config/mailcap b/.config/mailcap new file mode 100644 index 0000000..ff69b62 --- /dev/null +++ b/.config/mailcap @@ -0,0 +1,7 @@ +# open html files in default browser using xdg-open (appends .html to %s) +text/html; xdg-open %s; nametemplate=%s.html; copiousoutput; + +# wrap plain text before paging inside mutt (prevents line breaks to be +# prefixed with '+', makes copying URLs easier) +text/plain; fold -w $COLUMNS %s; copiousoutput; + diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index d901264..70c563d 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -1,21 +1,21 @@ # name -set realname = "Loek Le Blansch" +set real_name = "Loek Le Blansch" set from = "loek@pipeframe.xyz" # e-mail server -set folder = ~/docs/mail/pipeframe/ -set spoolfile = "+Inbox" +set folder = "~/docs/mail/pipeframe/" +set spool_file = "+Inbox" set record = "+Sent" set trash = "+Trash" set postponed = "+Drafts" # imap credentials set imap_user = "loek@mail.pipeframe.xyz" -set imap_pass = "`pass srv/fortnite/passwd/loek`" +set imap_pass = "$(pass srv/fortnite/passwd/loek)" # smtp credentials -set smtp_pass = $imap_pass -set smtp_url=smtp://$imap_user@mail.pipeframe.xyz:587 +set smtp_pass = "$imap_pass" +set smtp_url = "smtp://$imap_user@mail.pipeframe.xyz:587" set ssl_force_tls = yes # mail check timeout @@ -24,26 +24,41 @@ set mail_check = 60 # mailboxes mailboxes +Inbox +Drafts +Junk +Sent +Trash +Archive -# keybinds -macro index,pager A "<save-message>=Archive<enter>" "Archive Message" -bind index,pager N search-opposite +# open files +set mailcap_path = "$XDG_CONFIG_HOME/mailcap" + +# keybinds (more vim-like than default) +macro index,pager a "<save-message>=Archive<enter>" "Archive Message" # archive +bind index,pager n search-next # next search match +bind index,pager N search-opposite # previous search match +bind generic,index g noop # clear immediate action of `g` (required for `gg`) +bind generic,index gg first-entry # goto top of index +bind generic,index G last-entry # goto bottom of index +bind index \Cu previous-page # page up +bind index \Cd next-page # page down +bind attach <return> view-mailcap # always use mailcap to view attachments # contacts -set alias_file = "~/.config/neomutt/aliases" +set alias_file = "$XDG_CONFIG_HOME/neomutt/aliases" set sort_alias = alias set reverse_alias = yes -source $alias_file +source "$alias_file" # miscellaneous options set fast_reply = yes -set confirmappend = no +set confirm_append = no set delete = yes set include = yes set sort = threads -set header_cache = "~/.neomutt/hcache" +set header_cache = "$XDG_CACHE_HOME/neomutt/hcache" set edit_headers -set editor = "nvim" +set auto_edit = yes set mime_type_query_command = "xdg-mime query filetype" +unset prompt_after + +# external programs +set editor = "$EDITOR" +# set pager = "less" set sendmail = "/usr/bin/msmtp" set query_command = "/usr/bin/lbdbq" @@ -62,7 +77,7 @@ color tree white black color markers red black color search white black color tilde brightmagenta black -color index blue black ~F +color index blue black "~F" color index red black "~N|~O" # switch folders |