* c++-mode: auto indent class access
@ 2012-11-22 11:41 Miguel Guedes
0 siblings, 0 replies; 3+ messages in thread
From: Miguel Guedes @ 2012-11-22 11:41 UTC (permalink / raw)
To: help-gnu-emacs
How can emacs be set up such that when typing ':' in front of a class
access label, it automatically indents the line according to the setting
access-label in c-offsets-alist?
Example:
class Foo
{
public: <-- typing ':' to automatically indent (in my case to col 0)
--
Miguel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++-mode: auto indent class access
[not found] <mailman.13551.1353584707.855.help-gnu-emacs@gnu.org>
@ 2012-11-22 14:23 ` José A. Romero L.
2012-11-22 16:12 ` Miguel Guedes
0 siblings, 1 reply; 3+ messages in thread
From: José A. Romero L. @ 2012-11-22 14:23 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: help-gnu-emacs
W dniu czwartek, 22 listopada 2012 12:45:08 UTC+1 użytkownik Miguel Guedes napisał:
> How can emacs be set up such that when typing ':' in front of a class
> access label, it automatically indents the line according to the setting
> access-label in c-offsets-alist?
(...)
Hola Miguel,
Is M-x electric-indent-mode [RET] what you're looking for?
Cheers,
--
José A. Romero L.
escherdragon at gmail
"We who cut mere stones must always be envisioning cathedrals."
(Quarry worker's creed)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++-mode: auto indent class access
2012-11-22 14:23 ` José A. Romero L.
@ 2012-11-22 16:12 ` Miguel Guedes
0 siblings, 0 replies; 3+ messages in thread
From: Miguel Guedes @ 2012-11-22 16:12 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: help-gnu-emacs
On 22/11/12 14:23, José A. Romero L. wrote:
>
> Is M-x electric-indent-mode [RET] what you're looking for?
Perfect, that did the trick.
Gracias, José!
--
Miguel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-22 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 11:41 c++-mode: auto indent class access Miguel Guedes
[not found] <mailman.13551.1353584707.855.help-gnu-emacs@gnu.org>
2012-11-22 14:23 ` José A. Romero L.
2012-11-22 16:12 ` Miguel Guedes
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).