From: Pierre Habouzit Date: Sat, 18 Nov 2006 14:14:09 +0000 (+0100) Subject: make the dump be an almost valid .rc file. X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=c0d71a35d690605434605578a0d34ce101f754bb make the dump be an almost valid .rc file. add candy for vim users, you can now vi <(madmutt -t) :] Signed-off-by: Pierre Habouzit --- diff --git a/init.c b/init.c index 447db37..13797c3 100644 --- a/init.c +++ b/init.c @@ -2781,10 +2781,12 @@ int mutt_dump_variables (int full) { continue; } + printf("set "); FuncTable[DTYPE(option->type)].opt_to_string (buf, sizeof(buf), option); printf ("%s\n", buf); } + printf ("\n# vi""m:set ft=muttrc:\n"); return 0; }