From: Michael M Mason <admin@cambridge-optical.com>
Subject: Re: Emacs newbie - Syntax Highlighting and Indentation
Date: Fri, 14 Nov 2003 18:08:10 +0000 [thread overview]
Message-ID: <if5arv8rnvt4v47rk7nl7hjflv6uqvruv1@4ax.com> (raw)
In-Reply-To: bp2tgs$j0p$1@news.net.uni-c.dk
On Fri, 14 Nov 2003 16:52:12 +0100, David Rasmussen
<david.rasmussen@gmx.net> wrote:
>I've installed the Windows version of Emacs 21.3.1.
>I have read some tutorials, but I have two questions (for now):
>
>1) How do I enable syntax highlighting by default, for any type of file
>/ extension / mode that supports it? I have enabled it in the Options
>menu, and saved my options. But isn't there a non-menu-way of doing
>this, so I can get to learn and understand how to configure emacs myself?
Customisations are saved in a file called .emacs which is
stored in your home directory. Unless you've taken steps to
tell it otherwise, Emacs will very probably be using the
root directory of your C: drive as your home directory. You
can open your .emacs using C-x C-f and specifying ~/.emacs
as the filename.
In order to find out what you can put in your .emacs, select
"Read the Emacs Manual" from the "Help" menu and check out
the "Init File" sections. You will probably also want to
have a look at "font-locking" (the name for syntax
highlighting). The commands that you will most likely want
to put in your .emacs are:
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
(transient-mark-mode t)
There's a lot of Windows-specific information at:
http://www.gnu.org/software/emacs/windows/faq.html
and there's plenty of .emacs stuff at:
http://www.dotemacs.de/
--
Michael
next prev parent reply other threads:[~2003-11-14 18:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 15:52 Emacs newbie - Syntax Highlighting and Indentation David Rasmussen
2003-11-14 17:13 ` Uwe Siart
2003-11-14 17:48 ` Jiri Pejchal
2003-11-14 18:08 ` Michael M Mason [this message]
2003-11-14 18:20 ` Artur Hefczyc
2003-11-15 14:18 ` David Rasmussen
2003-11-15 15:08 ` Artur Hefczyc
2003-11-14 22:13 ` David Rasmussen
2003-11-14 22:22 ` Jody M. Klymak
2003-11-15 9:47 ` Artur Hefczyc
2003-11-17 13:39 ` Kevin Dziulko
[not found] ` <mailman.86.1068840578.399.help-gnu-emacs@gnu.org>
2003-11-14 21:33 ` Bruce Ingalls
2003-11-14 22:01 ` Stefan Monnier
2003-11-14 23:15 ` David Rasmussen
[not found] ` <mailman.117.1068862385.399.help-gnu-emacs@gnu.org>
2003-11-15 11:06 ` David Rasmussen
2003-11-15 12:43 ` Bruce Ingalls
2003-11-15 12:47 ` David Rasmussen
[not found] ` <david.rasmussen@gmx.net>
2003-11-14 19:07 ` Peter S Galbraith
2003-11-15 1:11 ` Peter S Galbraith
2003-11-15 15:09 ` David Rasmussen
2003-11-15 16:50 ` Artur Hefczyc
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=if5arv8rnvt4v47rk7nl7hjflv6uqvruv1@4ax.com \
--to=admin@cambridge-optical.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.
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).