From cead30ba457a7e22b6479ae316517bf333c6cdb2 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 20 Dec 2023 10:41:51 -0500 Subject: neomutt directories rely on XDG --- dot_config/neomutt/neomuttrc.tmpl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/dot_config/neomutt/neomuttrc.tmpl b/dot_config/neomutt/neomuttrc.tmpl index e857ce4..a49f29c 100644 --- a/dot_config/neomutt/neomuttrc.tmpl +++ b/dot_config/neomutt/neomuttrc.tmpl @@ -76,7 +76,7 @@ set query_command="lbdbq %s" # macro generic,index,pager \ca "abook" "launch abook" # macro index,pager A "abook --add-email-quiet" set reverse_alias = yes -set alias_file = $XDG_CONFIG_HOME/neomutt/alias.rc +set alias_file = "$XDG_CONFIG_HOME/neomutt/alias.rc" set ispell="aspell -e -c" @@ -127,19 +127,20 @@ set fcc_before_send=yes # to unset the folder option unset folder # alias.rc before accounts.rc -source $XDG_CONFIG_HOME/neomutt/alias.rc -source $XDG_CONFIG_HOME/neomutt/accounts.rc -source $XDG_CONFIG_HOME/neomutt/mailinglists.rc -source $XDG_CONFIG_HOME/neomutt/score.rc -source $XDG_CONFIG_HOME/neomutt/color.rc -source $XDG_CONFIG_HOME/neomutt/gpg.rc -source $XDG_CONFIG_HOME/neomutt/news.rc +source "$XDG_CONFIG_HOME/neomutt/alias.rc" +source "$XDG_CONFIG_HOME/neomutt/accounts.rc" +source "$XDG_CONFIG_HOME/neomutt/mailinglists.rc" +source "$XDG_CONFIG_HOME/neomutt/score.rc" +source "$XDG_CONFIG_HOME/neomutt/color.rc" +source "$XDG_CONFIG_HOME/neomutt/gpg.rc" +source "$XDG_CONFIG_HOME/neomutt/news.rc" {{- if hasPrefix .chezmoi.homeDir "/sdf" }} set from = 'Ryan Kavanagh ' {{- end }} -set tmpdir='$XDG_CONFIG_HOME/neomutt/tmp' +# preserve messages-in-composition between restarts in case of a power failure. +set tmpdir= "$XDG_STATE_HOME/neomutt" macro index \ "unset wait_key~/bin/mutt-fetchbug --prompt search~/.cache/mutt_btsresultsset wait_key" \ -- cgit v1.2.3