]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/muttrc
mutt: use NeoMutt and its config path in XDG_CONFIG_HOME
[dotfiles.git] / mutt / muttrc
index 44cec6a54c84005fc933434f777090bee78f7273..e7b41ba63bd41182da382b4368069a0ad74513e2 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 $my_config_dir/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 $my_config_dir/hooks
+source $my_config_dir/bindings
+source $my_config_dir/colors/badfox         # color theme