Improved editor setting, try to use correct values for line wrapping with nano, and skipping headers with both nano and ne.
This commit is contained in:
parent
5766191f6e
commit
1f0ebe4226
@ -191,7 +191,12 @@ initialize_directory()
|
||||
if [ -z "$i" ]; then
|
||||
exit 0
|
||||
fi
|
||||
echo "set editor=$i" > "$muttHome/muttrc"
|
||||
# Try to handle special cases like with ne and nano skipping headers and line wrapping.
|
||||
case "$i" in
|
||||
"nano") echo "set editor=$i +7 -r 72" > "$muttHome/muttrc";;
|
||||
"ne") echo "set editor=$i +7" > "$muttHome/muttrc";;
|
||||
*) echo "set editor=$i +7" > "$muttHome/muttrc";;
|
||||
esac
|
||||
echo "set text_flowed=yes" >> "$muttHome/muttrc"
|
||||
# I need to figure out a way to detect and set the language for the next setting.
|
||||
echo "set send_charset=us-ascii:utf-8" >> "$muttHome/muttrc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user