]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/muttrc
mutt: use relative paths where possible
[dotfiles.git] / mutt / muttrc
index 44cec6a54c84005fc933434f777090bee78f7273..9ae03e6a2fb430a6dc335b06e12322111bfe17c9 100644 (file)
@@ -1,3 +1,5 @@
+set my_config_dir = $XDG_CONFIG_HOME/mutt
+
 # general settings
 alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com @rmz.io
 alternates -group me -group chakra ram-z@chakra chakra@rmz.io
@@ -69,7 +71,7 @@ unhdr_order *
 hdr_order from: to: cc: date: subject: x-clacks-overhead:
 
 # deal with crap
-set mailcap_path = ~/.mutt/mailcap
+set mailcap_path = $my_config_dir/mailcap
 auto_view text/html                                     # view html automatically
 alternative_order text/plain text/enriched text/html    # save html for last
 
@@ -80,7 +82,7 @@ unset record                        # do not move sent msgs to a folder, gmail d
 unset move                          # do not move read msgs, gmail does that
 set postponed    = "+gmail/drafts"  # drafts folder
 set header_cache = "~/.cache/mutt"  # cache headers for speedss
-source ~/.mutt/mailboxes            # source mailboxes generetated by offlineimap
+source mailboxes                    # source mailboxes generetated by offlineimap
 
 # SMTP: msmtp
 set sendmail = /usr/bin/msmtp       # use msmtp
@@ -101,6 +103,6 @@ group -group nosign -rx jira@.*atlassian.net
 send-hook .            "set crypt_autosign = yes"
 send-hook "%t nosign"  "set crypt_autosign = no"
 
-source ~/.mutt/hooks
-source ~/.mutt/bindings
-source ~/.mutt/colors/badfox         # color theme
+source hooks
+source bindings
+source colors/badfox         # color theme