From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jmg3000@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Indentation. Date: 28 Oct 2006 09:25:30 -0700 Organization: http://groups.google.com Message-ID: <1162052730.412600.256330@h48g2000cwc.googlegroups.com> References: <1161965854.252710.306610@f16g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1162053691 27314 80.91.229.2 (28 Oct 2006 16:41:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 16:41:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 28 18:41:30 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdrFL-00075L-4m for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 18:41:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdrFK-0004Um-MN for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 12:41:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 67.86.66.31 Original-X-Trace: posting.google.com 1162052735 30399 127.0.0.1 (28 Oct 2006 16:25:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 28 Oct 2006 16:25:35 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=67.86.66.31; posting-account=0jymeQwAAAALbReIpIl6kgFFa_Xdu9Pp Original-Xref: shelby.stanford.edu gnu.emacs.help:142739 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38358 Archived-At: Sam Peterson wrote: > >>>>> "Sam" == Sam Peterson 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