From: Hadron Quark <hadronquark@gmail.com>
Subject: Re: modes not doing much
Date: Sat, 12 Aug 2006 15:27:15 +0200 [thread overview]
Message-ID: <87mzaaqe30.fsf@mail.com> (raw)
In-Reply-To: 44ddb5f9$0$15781$14726298@news.sunsite.dk
"Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk> writes:
> YAD wrote:
>> So far I've used Ruby mode and HTML mode.
>> No colors, no auto-indent on <rtrn>.
>>
>> So what are the modes doing? Vim and even the
>> Firefox source viewer have syntax-based colors.
>> Isn't Emacs supposed to do that too?
>>
>> Also, Lisp .cl files and Python .py files are coming up in
>> Fundamental mode, while OCaml .ml files come up in Lisp mode.
>> What the heck is going on? :(
>>
>
> Try
> M-x font-lock-mode
> for colouring
I have
(global-font-lock-mode 1)
in my .emacs. Using emacs-snaphot
,----
| GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
| 2006-01-16 on vernadsky, modified by Debian
`----
I have to refresh the screen (hilite & unhilite) the text for c mode
hiliting to start working. Why is this?
>
> to make this permanent, place this in your .emacs file
>
> (add-hook 'html-mode-hook '(lambda ()
> (turn-on-font-lock))
>
> (add-hook 'haskell-mode-hook '(lambda ()
> (turn-on-font-lock))
>
>
> I have auto-indent enabled for C, but I can't see where
> it is switched on.
>
>
>
> To associate a file name with a mode, use
> (add-to-list 'auto-mode-alist '("\\.cl\\'" . lisp-mode) 't)
> (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode) 't)
> I can't find the mode for Ocaml - you might need to google for one.
>
>
> Python should be bound by default - what does
> C-h v auto-mode-alist RET
> report?
>
>
>
> These code snippets are for XEmacs - they should
> work on GNU Emacs, but I can't guarantee that.
>
> HTH,
> Colin S. Miller
>
> --
> Replace the obvious in my email address with the first three letters of the hostname to reply.
--
next prev parent reply other threads:[~2006-08-12 13:27 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mzaaqe30.fsf@mail.com \
--to=hadronquark@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.