[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-indent new lines?
From: |
G Annamalai |
Subject: |
Re: Auto-indent new lines? |
Date: |
02 Mar 2001 11:35:47 +0530 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
"Mark Newby" <mark.newby@ntlworld.com> writes:
> How can I make Emacs and/or XEmacs on Win32 automatically indent new lines
> to that of the current line?
auto-newline minor mode of CC Mode would do that for you.
Add this to your .emacs file
(add-hook 'c-mode-common-hook
'(lambda () (c-toggle-auto-hungry-state 1)))
and you would get what you want.
This hungry state turns on auto-newline and the hungry-delete minor
modes.
I would suggest you to read the info pages for "CC Mode". There are
a lot of customisations that you could do.
Cheers,
anna
--
If it wasn't for C, we'd be using BASI, PASAL and OBOL.
- Auto-indent new lines?, Mark Newby, 2001/03/01
- Re: Auto-indent new lines?,
G Annamalai <=
- Re: Auto-indent new lines?, Mark Newby, 2001/03/02
- Re: Auto-indent new lines?, Victor R. Cardona, 2001/03/02
- Re: Auto-indent new lines?, Mark Newby, 2001/03/03
- Re: Auto-indent new lines?, Brenda J. Butler, 2001/03/03
- Re: Auto-indent new lines?, Jesper Holmberg, 2001/03/03
- Re: Auto-indent new lines?, Gurucharan, 2001/03/16
- Re: Auto-indent new lines?, Matt Armstrong, 2001/03/03