Questions tagged [cc-mode]

Major mode for C, C++, Objective-C, Java, CORBA IDL, Pike, AWK. Included in GNU Emacs and XEmacs.

CC Mode is an Emacs mode for editing files in C-like languages: C, C++, Objective-C, Java, CORBA IDL, Pike, AWK. It is included in GNU Emacs and in XEmacs. Use the tag for questions about CC Mode in general.

For questions about a specific language supported by CC Mode, see the corresponding tag: , , , , , , . For questions about CC Mode's support for that language, use both the language tag and .

Useful links

72 questions
3
votes
1 answer

Rainbow-Delimiters and CC-Mode Conflics

I just recently found the "rainbow-delimiters-mode" package and found it quite useful, however I seem to have run into a snag with it when using it in C-like languages: Naturally, I'd prefer to enable it for all programming modes, so I added the…
Xaldew
  • 1,231
  • 9
  • 21
1
vote
1 answer

How to edit an awk file in emacs 28.2 without using AWK//l mode defined in cc-mode.el

While trying to edit an awk file with emacs 28.2 its not self-inserting all charcaters, but trying to evaluate certain keystrokes! For example if I press 3 emacs sees C-u 3-! Pressing a causes it to query me for Cscope Initial Directory! Clearly…
alls0rts
  • 366
  • 3
  • 9
0
votes
0 answers

How to show enumerator's integral value?

Is there a way to print out the integral value of enumerator? I tried to search related questions but no good. So I suspect that this isn't a common requirement for most of people. But I do occasionally need to know the integer, the enumerator…
HQW.ang
  • 1
  • 2
0
votes
0 answers

How can I disable semicolon electric behaviour without impacting the other electric chars in CC-mode?

In CC-mode when the electric behavior of characters is enabled, typing the semicolon character triggers the c-electric-semi&comma command. That inserts the semicolon, terminates the line, moves point to next line and indents it. Question: How can I…
PRouleau
  • 796
  • 3
  • 10
0
votes
1 answer

objc-mode: Comment-end face is not same face as comment-start

How can I configure/modify objc-mode so that the face of comment-end is the same face as comment-start? [The goal is to have commend-end always use font-lock-comment-delimiter-face, instead of font-lock-comment-face. Perhaps whatever method c-mode…
lawlist
  • 19,106
  • 5
  • 38
  • 120
0
votes
1 answer

emacs cc-mode installation issue

I am relatively new to emacs. I'm wanting to set up cc-mode. I'm having trouble with the process. When I initially viewed list-packages, a search brought up cc-mode, but something I've done means it is not there any more. I am using the default…
Will
  • 1
  • 1
0
votes
2 answers

GNU Emacs - Space in compile command

I have written code to customize the compile-command to use MSBuild.exe if a .vcxproj file is found in the current directory for c-mode files via a c-mode-common-hook. Since MSBuild is not in the path my code sets compile command so that it includes…
Benilda Key
  • 159
  • 8