unsealed counsel

Posts tagged "C":

Emacs dummy headers mode without Objective C

14 Jun 2015

Choosing between C mode and C++ mode in emacs for header files can be a bit of a chore if both types of header files have a .h extension. As usual, a package for solving this problem already exists: dummy-h-mode. One of the heuristics that it uses is to search for an implementation file and then to check the extension of that implementation file for a hint on the mode. This heuristic works very well, but with a minor annoyance that it tries to handle Objective C headers as well. In my use case, I sometimes have purely template-based C++ code and a test implementation in Matlab or octave:

...
Tags: emacs dummy-headers C C++
Other posts
Creative Commons License
runes.lexarcana.com by Ravi R Kiran is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License .