From c0d71a35d690605434605578a0d34ce101f754bb Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sat, 18 Nov 2006 15:14:09 +0100 Subject: [PATCH] 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 --- init.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1