NeoMutt  2024-02-01-25-ga71e95
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
30#include "config.h"
31#include <stddef.h>
32#include <stdbool.h>
33#include "config/lib.h"
34
35#ifndef ISPELL
36#define ISPELL "ispell"
37#endif
38
42static struct ConfigDef ComposeVars[] = {
43 // clang-format off
44 { "compose_format", DT_STRING, IP "-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-", 0, NULL,
45 "printf-like format string for the Compose panel's status bar"
46 },
47 { "compose_show_user_headers", DT_BOOL, true, 0, NULL,
48 "Controls whether or not custom headers are shown in the compose envelope"
49 },
50 { "copy", DT_QUAD, MUTT_YES, 0, NULL,
51 "Save outgoing emails to $record"
52 },
53 { "edit_headers", DT_BOOL, false, 0, NULL,
54 "Let the user edit the email headers whilst editing an email"
55 },
56 { "ispell", DT_STRING|D_STRING_COMMAND, IP ISPELL, 0, NULL,
57 "External command to perform spell-checking"
58 },
59 { "postpone", DT_QUAD, MUTT_ASKYES, 0, NULL,
60 "Save messages to the `$postponed` folder"
61 },
62 { NULL },
63 // clang-format on
64};
65
70{
72}
static struct ConfigDef ComposeVars[]
Config definitions for compose.
Definition: config.c:42
#define ISPELL
Definition: config.c:36
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition: set.c:281
#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:69
@ 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 D_STRING_COMMAND
A command.
Definition: types.h:96
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition: types.h:40
@ DT_STRING
a string
Definition: types.h:44