all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C formatting
@ 2002-12-28  0:17 Oodini
  2002-12-28  0:39 ` Bijan Soleymani
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Oodini @ 2002-12-28  0:17 UTC (permalink / raw)


hello,

I am fighting with EMacs in order to get my programmation style:

void function(int x, int y)
{
      blabla;
      if (...)
      {
           blabla
           blabla
      }
      else
           blabla;
}

I ma desesperatly playing in my .emacs with the following statements, 
but no luck:

(setq c-mode-hook
     (function
       (lambda ()
        (setq c-basic-offset 0)
        (setq c-indent-level 5)
        (setq c-continued-statement-offset 5)
        (setq c-argdecl-indent 0)
        (setq c-brace-offset -5)
        (setq c-label-offset -5)
       )
     )
)

If someone has the same formatiing habits, please give me your setup 
values...

By the way, there is no way, in the buffer, to put two following tabs ??

Thanks for help !

-- 
  .      .
  .  .:::.          ###           \|/        `  ___  '
    :(o o):  .     (o o)         (o o)      -  (O o)  -
ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-

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

end of thread, other threads:[~2002-12-28 13:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-28  0:17 C formatting Oodini
2002-12-28  0:39 ` Bijan Soleymani
2002-12-28 11:47   ` Oodini
2002-12-28 11:50     ` Oodini
2002-12-28 12:32       ` Jesper Harder
2002-12-28 13:05     ` Kai Großjohann
2002-12-28 13:13       ` Oodini
2002-12-28  1:11 ` chris.danx
2002-12-28 12:31   ` Oodini
2002-12-28 12:57     ` chris.danx
2002-12-28 13:03       ` Oodini
2002-12-28 13:03     ` Kai Großjohann
2002-12-28 11:05 ` Kai Großjohann
2002-12-28 12:52   ` Oodini
2002-12-28 13:50     ` Kai Großjohann
2002-12-28 13:53     ` Kai Großjohann

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.