FAQ(02) - C++ is not default, C is - how do I change this ??C++ is not default, C is - how do I change this ??
If your main programming language is C++, then you will require the .def and .h files to be loaded in C++ mode by default, rather than 'C'. To modify this hen the extension list and priority of the cpp major-mode needs adjusting.
Within your <user>.emf, over-ride the default extension list and priority by adding the line:-
4 major-mode "cpp" ".cc .cpp .cxx .def .h .hh .hpp .hxx .rc"
This redefines the C++ major-mode extension list to include ".h" and ".def" and makes it highest priority.
(c) Copyright JASSPA 2026
Last Modified: 2026/01/17
Generated On: 2026/01/31