NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
config.c
Go to the documentation of this file.
1 
29 #include <stddef.h>
30 #include <stdbool.h>
31 #include "config/lib.h"
32 
33 #ifndef ISPELL
34 #define ISPELL "ispell"
35 #endif
36 
37 static struct ConfigDef ComposeVars[] = {
38  // clang-format off
39  { "compose_format", DT_STRING|R_MENU, IP "-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-", 0, NULL,
40  "printf-like format string for the Compose panel's status bar"
41  },
42  { "compose_show_user_headers", DT_BOOL, true, 0, NULL,
43  "Controls whether or not custom headers are shown in the compose envelope"
44  },
45  { "copy", DT_QUAD, MUTT_YES, 0, NULL,
46  "Save outgoing emails to $record"
47  },
48  { "edit_headers", DT_BOOL, false, 0, NULL,
49  "Let the user edit the email headers whilst editing an email"
50  },
51  { "ispell", DT_STRING|DT_COMMAND, IP ISPELL, 0, NULL,
52  "External command to perform spell-checking"
53  },
54  { "postpone", DT_QUAD, MUTT_ASKYES, 0, NULL,
55  "Save messages to the `$postponed` folder"
56  },
57  { NULL }
58  // clang-format on
59 };
60 
65 {
66  return cs_register_variables(cs, ComposeVars, 0);
67 }
Container for lots of config items.
Definition: set.h:259
#define IP
Definition: set.h:54
Definition: set.h:63
#define DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition: types.h:37
Convenience wrapper for the config headers.
#define ISPELL
Definition: config.c:34
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:276
#define R_MENU
Redraw all menus.
Definition: types.h:72
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:50
Ask the user, defaulting to &#39;Yes&#39;.
Definition: quad.h:41
bool config_init_compose(struct ConfigSet *cs)
Register compose config variables - Implements module_init_config_t -.
Definition: config.c:64
#define DT_BOOL
boolean option
Definition: types.h:30
User answered &#39;Yes&#39;, or assume &#39;Yes&#39;.
Definition: quad.h:39