make the dump be an almost valid .rc file.
authorPierre Habouzit <madcoder@madism.org>
Sat, 18 Nov 2006 14:14:09 +0000 (15:14 +0100)
committerPierre Habouzit <madcoder@madism.org>
Sat, 18 Nov 2006 14:14:09 +0000 (15:14 +0100)
add candy for vim users, you can now vi <(madmutt -t) :]

Signed-off-by: Pierre Habouzit <madcoder@madism.org>
init.c

diff --git a/init.c b/init.c
index 447db37..13797c3 100644 (file)
--- 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;
 }