From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dsjoblom@abo.fi Newsgroups: gmane.emacs.help Subject: Re: modes not doing much Date: 12 Aug 2006 14:23:28 -0700 Organization: http://groups.google.com Message-ID: <1155417808.722356.293840@h48g2000cwc.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1155418834 17774 80.91.229.2 (12 Aug 2006 21:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 21:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 12 23:40:34 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 1GC1Dd-0000al-0e for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 23:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC1Dc-0000Fq-HI for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 17:40:32 -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: 22 Original-NNTP-Posting-Host: 62.72.227.107 Original-X-Trace: posting.google.com 1155417814 30171 127.0.0.1 (12 Aug 2006 21:23:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 12 Aug 2006 21:23:34 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060810 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=62.72.227.107; posting-account=FyATkw0AAACzTRQ3K-PehDvnlXGH2pct Original-Xref: shelby.stanford.edu gnu.emacs.help:141013 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:36638 Archived-At: YAD wrote: > So far I've used Ruby mode and HTML mode. > No colors, no auto-indent on . Others have already helped with the coloring problem, but you may want to try this in your .emacs to set up auto-indenting for programming modes you are using: (add-hook 'perl-mode-hook #'(lambda () ;; A better newline (local-set-key "\C-m" #'reindent-then-newline-and-indent))) This particular example is for perl, adjust the hook name to the name of your mode hook. For other similar functions to bind to the return key, try M-x apropos newline-and-indent. Regards, Daniel Sj=F6blom