unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: Re: modes not doing much
Date: Sun, 13 Aug 2006 01:17:09 +0300	[thread overview]
Message-ID: <86bqqpk3a2.fsf@gothmog.pc> (raw)
In-Reply-To: 1155417808.722356.293840@h48g2000cwc.googlegroups.com

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 <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)))

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 :)

      reply	other threads:[~2006-08-12 22:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-12  8:09 modes not doing much YAD
2006-08-12 11:05 ` Colin S. Miller
2006-08-12 11:23   ` Colin S. Miller
2006-08-12 13:27   ` Hadron Quark
2006-08-12 15:00   ` YAD
2006-08-12 16:37     ` Drew Adams
2006-08-12 14:56 ` robert.thorpe
2006-08-12 16:26   ` YAD
2006-08-12 21:23 ` dsjoblom
2006-08-12 22:17   ` Giorgos Keramidas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86bqqpk3a2.fsf@gothmog.pc \
    --to=keramida@ceid.upatras.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).