From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: modes not doing much Date: Sun, 13 Aug 2006 01:17:09 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <86bqqpk3a2.fsf@gothmog.pc> References: <1155417808.722356.293840@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155422429 25692 80.91.229.2 (12 Aug 2006 22:40:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 22:40:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 13 00:40:28 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 1GC29b-0000Yn-SK for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2006 00:40:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC29b-0001Bt-Ad for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 18:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:cfAnBkriF9dJc9L8TPisrLGeNjk= Original-Lines: 24 Original-NNTP-Posting-Host: 62.103.39.229 Original-X-Trace: news.sunsite.dk DXC=@n6kfaeXk>OLCYW^HlPiL@YSB=nbEKnkK]l:<0?f@AACL^MjG2:ak; I7eU]GGb30c[>DY7K9@17FaVj6hN Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:141014 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:36639 Archived-At: On 12 Aug 2006 14:23:28 -0700, dsjoblom@abo.fi wrote: > 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))) In recent Emacs versions, you can also write this as: (add-hook 'perl-mode-hook (lambda () ;; A better newline (local-set-key (kbd "RET") 'reindent-then-newline-and-indent))) which I sometimes find cleaner than "\C-\M-\S-foo" stuff :)