* 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.