From: Lucas <bonnet.lucas@wanadoo.fr>
Subject: Re: Colorizing Emacs
Date: Wed, 05 Mar 2003 17:38:28 +0100 [thread overview]
Message-ID: <uzno9epkr.fsf@wanadoo.fr> (raw)
In-Reply-To: mailman.2790.1046881488.21513.help-gnu-emacs@gnu.org
Un beau jour, jchen@parasoft.com (John Chen) nous a dit:
> Sorry for the ambiguity, but what I meant was that when I open a Java
> File, for example, I would like reserved words to be a certain color
> and stuff of that nature.
There is a java-mode which is loaded when you open a java file (provided
that your file has an extenstion recognized by Emacs to be Java [1]).
You need to set up the font-lock-mode in your .emacs, and then, when you
open a Java file, Emacs will load the mode, and colors will spread
around in your buffer.
The same rules apply to a lot of modes, see the value of auto-mode-alist
to have an idea.
--
Lucas, asm rulez.
[1] In my auto-mode-alist, java-mode is "binded" to .java, but you can
add other file extensions if you like.
next parent reply other threads:[~2003-03-05 16:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2790.1046881488.21513.help-gnu-emacs@gnu.org>
2003-03-05 16:38 ` Lucas [this message]
2003-03-05 17:38 ` Colorizing Emacs Kai Großjohann
2003-03-05 16:13 John Chen
[not found] <mailman.2753.1046833807.21513.help-gnu-emacs@gnu.org>
2003-03-05 7:13 ` Kai Großjohann
2003-03-05 8:24 ` Lucas
2003-03-05 8:53 ` Kai Großjohann
2003-03-05 11:27 ` Lucas
2003-03-05 14:42 ` Kai Großjohann
2003-03-05 16:22 ` Lucas
2003-03-05 13:00 ` Francois Fleuret
2003-03-05 13:22 ` Lucas
2003-03-05 8:45 ` Stein A. Stromme
2003-03-05 19:11 ` Peter Lee
-- strict thread matches above, loose matches on Subject: below --
2003-03-05 3:09 John Chen
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=uzno9epkr.fsf@wanadoo.fr \
--to=bonnet.lucas@wanadoo.fr \
/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.