aboutsummaryrefslogtreecommitdiff
path: root/mutt/muttrc.d/src
blob: cc2eb4ef0609a891ff0c9e4c4bafb5cb041060e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Helper script to emit the source all muttrc subfiles, in LC_COLLATE order
for rc in "$HOME"/.muttrc.d/*.rc ; do
    [ -e "$rc" ] || continue
    cat -- "$rc"
done

# Special case: if using GNU Emacs, emit a line to disable edit_headers, just
# because at the moment I haven't worked out how to make this work sanely with
# messages-are-flowing in message-mode.
case $VISUAL in
    emacs|emacsclient) printf 'set edit_headers = no\n' ;;
esac