unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bijan Soleymani <bijan@psq.com>
Subject: Re: syntax coloring os not working!!!!!
Date: 02 Jan 2003 03:08:41 -0500	[thread overview]
Message-ID: <87n0mknfcm.fsf@hurd.crasseux.com> (raw)
In-Reply-To: mailman.6.1041492833.28484.help-gnu-emacs@gnu.org

unni krishnan <gnu_talk@yahoo.co.in> writes:

> >
> > hello,
> >
> > i am a new user (student) of emacs.how can i
> > do syntax coloring in emacs?
> >
> >It's simply, just type:
> >M-x global-font-lock-mode
> >If you don't have the Meta key (alt should be equal to Meta), you can
> >type ESC-x global-font-lock-mode
> >To make permanent this configuration, you must edit the .emacs file and
> >insert the following line
> >(global-font-lock-mode 1)
> 
>  
> 
> hi,
> 
> syntax coloring is not working.
What version of emacs are you using?
Are you using it in X or the console (emacs only supports colors on
text only terminals since version 21)? 

> thanks for response. i am using a linux 7.2
There is no such thing. Linux is the kernel, the current bleeding edge
is around 2.5.36. You must be using a distribution of Linux and some
other free software, possibly Red Hat, Mandrake or Slackware.
 
> i have typed the command
> 
>  M-x global-font-lock-mode
> 
> but the result is
> 
> "global font lock mode disabled"
That would indicate that it was already enabled, and that you disabled
it. What happens if you run M-x global-font-lock-mode again?

What are you using highlighting for? If you open a text file (.txt)
there (obviously) won't be any highlighting by default. What happens
if you open a C source file (.c)?

Finally emacs comes with excellent online documentation. Please take
the time to familiarize yourself with it.

Choose read the emacs manual from the help submenu.

C-h i
will get you into info which should have documentation for many of the
programs on your computer. Move the cursor down to emacs and then
press enter.
Only a few commands are enough to use info:
'Enter' follows a link'
'u' moves up to a higher level. 
'l' goes back to the last place you were at.

That should be enough to get started.

Bijan

       reply	other threads:[~2003-01-02  8:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6.1041492833.28484.help-gnu-emacs@gnu.org>
2003-01-02  8:08 ` Bijan Soleymani [this message]
2003-01-02 11:18 ` syntax coloring os not working!!!!! Kai Großjohann
2003-01-02  7:33 unni krishnan

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=87n0mknfcm.fsf@hurd.crasseux.com \
    --to=bijan@psq.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).