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