[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indentation.
From: |
jmg3000 |
Subject: |
Re: Indentation. |
Date: |
28 Oct 2006 09:25:30 -0700 |
User-agent: |
G2/1.0 |
Sam Peterson wrote:
> >>>>> "Sam" == Sam Peterson <skpeterson@nospam.please.ucdavis.edu> writes:
>
> > (global-set-key "\C-m" 'newline-and-indent)
> > (global-set-key "\C-m" 'newline)
>
> Woops! That second line should be:
>
> (global-set-key "\C-j" 'newline)
>
> There.
I've also seen that written
(global-set-key "\r" 'newline-and-indent)
and that seems to work also. So, Sam, that plus
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
should be just what you want.
---John