newline), in a C preprocessor line it additionally inserts a ‘\’ at the line break, and within comments it's like M-j (
c-context-line-break isn't bound to a key by default, but it
needs a binding to be useful. The following code will bind it to
<RET>. We use
c-initialization-hook here to make
sure the keymap is loaded before we try to change it.
(defun my-bind-clb () (define-key c-mode-base-map "\C-m" 'c-context-line-break)) (add-hook 'c-initialization-hook 'my-bind-clb)
c-fill-paragraph). If any part of the current line is a comment or within a comment, this command fills the comment or the paragraph of it that point is in, preserving the comment indentation and comment delimiters.
c-macro-expand). The buffer text before the region is also included in preprocessing, for the sake of macros defined there, but the output from this part isn't shown.
When you are debugging C code that uses macros, sometimes it is hard to
figure out precisely how the macros expand. With this command, you
don't have to figure it out; you can see the expansions.
c-backslash-region). This is useful after writing or editing a C macro definition.
If a line already ends in ‘\’, this command adjusts the amount of
whitespace before it. Otherwise, it inserts a new ‘\’. However,
the last line in the region is treated specially; no ‘\’ is
inserted on that line, and any ‘\’ there is deleted.
c-show-syntactic-information). This information directs how the line is indented.
You can enable the mode for one buffer with the command M-x
cwarn-mode, or for all suitable buffers with the command M-x
global-cwarn-mode or by customizing the variable
global-cwarn-mode. You must also enable Font Lock mode to make
t, Hide-ifdef minor mode shadows preprocessor blocks by displaying them with a less prominent face, instead of hiding them entirely. See the documentation string of
hide-ifdef-modefor more information.
ff-related-file-alistspecifies how to compute related file names.