NeoMutt
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
41static struct ConfigDef ComposeVars[] = {
42 // clang-format off
43 { "compose_format", DT_STRING, IP "-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-", 0, NULL,
44 "printf-like format string for the Compose panel's status bar"
45 },
46 { "compose_show_user_headers", DT_BOOL, true, 0, NULL,
47 "Controls whether or not custom headers are shown in the compose envelope"
48 },
49 { "copy", DT_QUAD, MUTT_YES, 0, NULL,
50 "Save outgoing emails to $record"
51 },
52 { "edit_headers", DT_BOOL, false, 0, NULL,
53 "Let the user edit the email headers whilst editing an email"
54 },
55 { "ispell", DT_STRING|DT_COMMAND, IP ISPELL, 0, NULL,
56 "External command to perform spell-checking"
57 },
58 { "postpone", DT_QUAD, MUTT_ASKYES, 0, NULL,
59 "Save messages to the `$postponed` folder"
60 },
61 { NULL },
62 // clang-format on
63};
64
69{
71}
static struct ConfigDef ComposeVars[]
Config definitions for compose.
Definition: config.c:41
#define ISPELL
Definition: config.c:35
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:279
#define IP
Definition: set.h:54
bool config_init_compose(struct ConfigSet *cs)
Register compose config variables - Implements module_init_config_t -.
Definition: config.c:68
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition: quad.h:41
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
Definition: quad.h:39
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
#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:53
#define DT_NO_FLAGS
No flags are set.
Definition: types.h:47