Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Haider Abbas Rizvi
Sun, 13 Oct 1991 21:47
indentation of fn declarations.
Author: Haider Abbas Rizvi
Date: Sun, 13 Oct 1991 21:47
Date: Sun, 13 Oct 1991 21:47
48 lines
1698 bytes
1698 bytes
Hi,
I had a problem with the indentation of gnuemacs. When I write a program
with c-mode, I get the following indentation:
#include <stdio.h>
void main()
{
}
int panga()
{
}
My c-mode variables are as following.
;; c-argdecl-indent:
5
;; c-auto-newline:
nil
;; c-brace-imaginary-offset:
0
;; c-brace-offset:
0
;; c-continued-brace-offset:
0
;; c-continued-statement-offset:
2
;; c-indent-level:
2
;; c-label-offset:
-2
;; c-tab-always-indent:
t
I want the first function after the macro and include declarations to be on
the first column too as the rest of them are. Does anyone have any ideas as
to what is causing this and a solution.
Thanks in advance. Please email the response if you can.
--
-----------------------------------------------------------------------------
| Haider Abbas Rizvi | Deptt of Elect and Computer Engg, |
| haider@rice.edu | Abercrombie A147, Rice University, |
| (713)-527-8750-3629 | Houston, TX 77251-1892. |
----------------------------------------------------------------------------
indentation of fn declarations.
Author: Kam C. Tsang
Date: Wed, 16 Oct 1991 04:27
Date: Wed, 16 Oct 1991 04:27
20 lines
1008 bytes
1008 bytes
> I want the first function after the macro and include declarations to be on > the first column too as the rest of them are. Does anyone have any ideas as > to what is causing this and a solution. > Try this: (setq c-tab-always-indent t c-auto-newline nil c-indent-level 3 c-continued-statement-offset 3 c-continued-brace-offset 0 c-brace-offset -3 c-brace-imaginary-offset 0 c-argdecl-indent 0 c-label-offset -3 ) -kam
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads