XEmacs C/Java mode configuration
When I write C/Java Code in XEmacs the braces are always indented like this: if (x) { x = 0; } But I want it to look like this: if (x) { x = 0; } How can I change this? I think I searched the whole options menu but didn't find anything. Are there any docs where I could have read about this? BTW, how can I indent a selected area? Is there something like block indent? TIA, Thomas
Re: XEmacs C/Java mode configuration
Quoting Thomas Apel ([EMAIL PROTECTED]): BTW, how can I indent a selected area? Is there something like block indent? M-x indent-region Mike Stone
Re: XEmacs C/Java mode configuration
On Mon, 2 Nov 1998, Thomas Apel wrote: When I write C/Java Code in XEmacs the braces are always indented like this: if (x) { x = 0; } But I want it to look like this: if (x) { x = 0; } How can I change this? I think I searched the whole options menu but didn't find anything. Are there any docs where I could have read about this? Take a look at the info page for xemacs/cc-mode. all is explained there. -- Jean Pierre
Re: XEmacs C/Java mode configuration
On Mon, 2 Nov 1998, Thomas Apel wrote: if (x) { x = 0; } How can I change this? I think I searched the whole options menu but didn't find anything. Are there any docs where I could have read about this? M-x info m xemacs RET should be helpful. (well, I don't use XEmacs, but this would work in plain Emacs...) Plain Emacs has a section called Changing Indentation Style, which includes this: `M-x c-set-style RET STYLE RET' Select predefined indentation style STYLE. Type `?' when entering STYLE to see a list of supported styles; to find out what a style looks like, select it and reindent some C code. `C-c C-o SYMBOL RET OFFSET RET' Set the indentation offset for syntactic symbol SYMBOL (`c-set-offset'). The second argument OFFSET specifies the new indentation offset. Havoc