Comments on AutoInsertMode

When I add both the provided snippets for C and C++ in my “~/.emacs.d/config.org” config file, I got the C++ snippet inserted when I open a file called “test.c”….

— EXtract of “~/.emacs.d/config.org”

It’s really strange as the extensions’ regexes are quite well defined. Could it be lsp that interfers?

FYI: GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian

– Anonymous 2021-03-31 08:32 UTC


OK … Tested: it is not LSP interacting I just inverted the two snippets and now it works… Strange…

– Anonymous 2021-03-31 08:36 UTC


Please make sure you contribute only your own work. IP numbers are made available via the page history. If you want to keep it a secret, you need to use Tor. See TextFormattingRules for how to format text. See StyleGuide for the suggested writing style on this wiki.

To save this page you must answer this question:

What is the greatest editor out there?