unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-mode Backslash (\) Indentation
@ 2010-02-23  7:13 Volkan YAZICI
  2010-02-23  8:37 ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Volkan YAZICI @ 2010-02-23  7:13 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

In c-mode, how can I make all `\' (backslash) characters to get
indented to 80th character of the line? When I select a macro region
and type M-\, function finds the longest line in the region and
indents the `\' characters at most that found position.


Regards.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c-mode Backslash (\) Indentation
  2010-02-23  7:13 c-mode Backslash (\) Indentation Volkan YAZICI
@ 2010-02-23  8:37 ` Alan Mackenzie
  2010-02-23  9:05   ` Volkan YAZICI
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2010-02-23  8:37 UTC (permalink / raw)
  To: help-gnu-emacs

Volkan YAZICI <volkan.yazici@gmail.com> wrote:
> Hi,

> In c-mode, how can I make all `\' (backslash) characters to get
> indented to 80th character of the line? When I select a macro region
> and type M-\, function finds the longest line in the region and
> indents the `\' characters at most that found position.

Set the user option `c-backslash-column' to 80 and
`c-backslash-max-column' also to 80.

These options are described on page "Custom Macros" in the CC Mode
manual.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c-mode Backslash (\) Indentation
  2010-02-23  8:37 ` Alan Mackenzie
@ 2010-02-23  9:05   ` Volkan YAZICI
  0 siblings, 0 replies; 3+ messages in thread
From: Volkan YAZICI @ 2010-02-23  9:05 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 23, 10:37 am, Alan Mackenzie <a...@muc.de> wrote:
> Volkan YAZICI <volkan.yaz...@gmail.com> wrote:
> > In c-mode, how can I make all `\' (backslash) characters to get
> > indented to 80th character of the line? When I select a macro region
> > and type M-\, function finds the longest line in the region and
> > indents the `\' characters at most that found position.
>
> Set the user option `c-backslash-column' to 80 and
> `c-backslash-max-column' also to 80.
>
> These options are described on page "Custom Macros" in the CC Mode
> manual.

My bad, I should have checked the docs more closely. Anyway, works
like a charm! Thanks so much!


Regards.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-23  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23  7:13 c-mode Backslash (\) Indentation Volkan YAZICI
2010-02-23  8:37 ` Alan Mackenzie
2010-02-23  9:05   ` Volkan YAZICI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).