Related questions
Emacs C++-mode incorrect indentation?
I'm running emacs 23 with c++-mode and having some indentation problems.
Suppose I have this code:
void foo()
{
if (cond)
{ <---
int i;
...
} <---
}
This seems to be the default behavior of the automatic indentation.
However I'd like …
How to add include path to flycheck c/c++-clang?
I tried to add include path to flycheck c/c++-clang, but it didn't work.
I put foo.h in ~/local/include and added the following lines to init.el:
(add-hook 'c++-mode-hook
(lambda () (setq flycheck-clang-standard-library "libc++")))
(add-hook 'c++-mode-hook
(…
emacs, etags and using emacs as an IDE
My usual tools are Emacs with g++ on a Linux system to implement my research algorithms. For the last some years, I have used emacs in a fairly basic way. I open C or C++ files, edit them with a …