diff options
Diffstat (limited to 'config/ecexrc.c')
| -rw-r--r-- | config/ecexrc.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/config/ecexrc.c b/config/ecexrc.c index 1d13f18..75f2470 100644 --- a/config/ecexrc.c +++ b/config/ecexrc.c @@ -5,6 +5,10 @@ #include "render_demo.c" #include "tetris.c" #include "markdown_plugin.c" +#include "which_key_plugin.c" +#include "c_mode_plugin.c" +#include "ecex_api_completion_plugin.c" +#include "c_tools_plugin.c" #undef ECEX_NO_STANDALONE_CONFIG #define RGB(r, g, b) ECEX_RGB8(r, g, b) @@ -141,11 +145,22 @@ ECEX_CONFIG_BEGIN ECEX_CONFIG_INCLUDE(ecex_render_demo_plugin); ECEX_CONFIG_INCLUDE(ecex_tetris_plugin); ECEX_CONFIG_INCLUDE(ecex_markdown_plugin); + ECEX_CONFIG_INCLUDE(ecex_which_key_plugin); + ECEX_CONFIG_INCLUDE(ecex_c_mode_plugin); + ECEX_CONFIG_INCLUDE(ecex_api_completion_plugin); + if (ecex_plugin_require_dependency(ed, "c-tools", "clang") == 0 && + ecex_plugin_require_dependency(ed, "c-tools", "clangd") == 0) { + ECEX_CONFIG_INCLUDE(ecex_c_tools_plugin); + } buffer_t *scratch = ecex_current_buffer(ed); buffer_insert(scratch, "ecex config loaded !\n"); - buffer_insert(scratch, "Try F1, C-x C-f, C-x C-s, C-x d file browser, F2 commands, F3 buffers, F4 demo menu, C-x b.\n"); + buffer_insert(scratch, "Try M-x, C-x C-f, C-x C-s, C-x d file browser, F2 commands, F3 buffers, F4 demo menu, C-x b.\n"); + buffer_insert(scratch, "which-key is enabled: press C-x or M-g and the minibuffer will show continuations.\n"); + buffer_insert(scratch, "TAB indents; in C buffers it smart-indents. C-TAB completes and cycles candidates.\n"); + buffer_insert(scratch, "C completion asks clangd; c-mode highlights C syntax.\n"); + buffer_insert(scratch, "When c-tools is loaded, C-x c l checks, C-x c k lints, C-x c e lints with ./include.\n"); buffer_insert(scratch, "Run M-x render-demo for a custom renderer demo, or M-x tetris for Tetris.\n"); buffer_insert(scratch, "Example line to edit then C-x C-e: ecex_set_font_size(ed, 28.0f);\n"); buffer_insert(scratch, "Example relative change: ecex_adjust_font_size(ed, 2.0f);\n\n"); |
