help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modes not doing much


From: dsjoblom
Subject: Re: modes not doing much
Date: 12 Aug 2006 14:23:28 -0700
User-agent: G2/0.2

YAD wrote:
> So far I've used Ruby mode and HTML mode.
> No colors, no auto-indent on <rtrn>.

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öblom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]