NeoMutt  2023-05-17-16-g61469c
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 <config/lib.h>
32#include <stdbool.h>
33
37static struct ConfigDef IndexVars[] = {
38 // clang-format off
39 { "change_folder_next", DT_BOOL, false, 0, NULL,
40 "Suggest the next folder, rather than the first when using '<change-folder>'"
41 },
42 { "collapse_all", DT_BOOL, false, 0, NULL,
43 "Collapse all threads when entering a folder"
44 },
45 { "mark_macro_prefix", DT_STRING, IP "'", 0, NULL,
46 "Prefix for macros using '<mark-message>'"
47 },
48 { "uncollapse_jump", DT_BOOL, false, 0, NULL,
49 "When opening a thread, jump to the next unread message"
50 },
51 { "uncollapse_new", DT_BOOL, true, 0, NULL,
52 "Open collapsed threads when new mail arrives"
53 },
54 { NULL },
55 // clang-format on
56};
57
62{
64}
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_index(struct ConfigSet *cs)
Register index config variables - Implements module_init_config_t -.
Definition: config.c:61
static struct ConfigDef IndexVars[]
Config definitions for the Index.
Definition: config.c:37
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41
#define DT_NO_FLAGS
No flags are set.
Definition: types.h:47