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 "config.h"
30 #include <stddef.h>
31 #include <config/lib.h>
32 #include <stdbool.h>
33 
34 static struct ConfigDef IndexVars[] = {
35  // clang-format off
36  { "change_folder_next", DT_BOOL, false, 0, NULL,
37  "Suggest the next folder, rather than the first when using '<change-folder>'"
38  },
39  { "collapse_all", DT_BOOL, false, 0, NULL,
40  "Collapse all threads when entering a folder"
41  },
42  { "mark_macro_prefix", DT_STRING, IP "'", 0, NULL,
43  "Prefix for macros using '<mark-message>'"
44  },
45  { "uncollapse_jump", DT_BOOL, false, 0, NULL,
46  "When opening a thread, jump to the next unread message"
47  },
48  { "uncollapse_new", DT_BOOL, true, 0, NULL,
49  "Open collapsed threads when new mail arrives"
50  },
51 
52  { NULL },
53  // clang-format on
54 };
55 
59 bool config_init_index(struct ConfigSet *cs)
60 {
61  return cs_register_variables(cs, IndexVars, 0);
62 }
Container for lots of config items.
Definition: set.h:259
#define IP
Definition: set.h:54
Definition: set.h:63
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:276
#define DT_STRING
a string
Definition: types.h:41
bool config_init_index(struct ConfigSet *cs)
Register index config variables - Implements module_init_config_t -.
Definition: config.c:59
#define DT_BOOL
boolean option
Definition: types.h:30