all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Yo Sato" <yosato16@gmail.com>
To: "Peter Dyballa" <Peter_Dyballa@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: colour highlighting problem on major modes
Date: Sat, 16 Feb 2008 18:44:12 +0000	[thread overview]
Message-ID: <a10948b50802161044u7a504c9bked3ff44c802ee935@mail.gmail.com> (raw)
In-Reply-To: <6A5EF16D-EB02-4BDA-9EF1-02A290892EE2@Web.DE>

Thanks for your reply Peter, the problem has been solved with your
suggestion, or, nearly.

Indeed global-font-lock seems to have been the main culprit, and with
this mode on all the colours have come back!! -- so I thought. However
I then realised the prolog mode I mentioned, which *was* working --
installed on the home directory and loaded with .emacs (as below) --
has gone... Rather, I need to invoke the mode manually now. Also, I
lost the mouse wheel functionality, though it was easy to recover it
by adding 'wheel-mouse' in .emacs.

I'm puzzled by this apparent incompatibility -- only on one machine
--- between the modes loaded from a default directory and the ones
loaded from somewhere else. It seems that only one or the other sets
seem to work at one time. I don't understand either why the same
.emacs does not work only for this particular installation.

I put the line to switch the global-font-mode on (as you suggested) at
the beginning of the .emacs file. I tried various places but the
results were the same.

Not a big problem anymore but I would appreciate some explanation for
the above phenomenon.

Yo

This is the bit that loads prolog.el. Nothing unusual I guess.

(setq load-path (cons "~/emacs.lib/" load-path) ) % this is where
prolog.el resides
(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
  (autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
   ...
  (setq auto-mode-alist (append '(("\\.pl$" . prolog-mode))


On 16/02/2008, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 15.02.2008 um 17:00 schrieb Yo Sato:
>
> > What could I be missing?
>
>
> Maybe:
>
>         (cond ((fboundp 'global-font-lock-mode)
>            ;; Turn on font-lock in all modes that support it
>            (global-font-lock-mode 1)
>         ;   (setq font-lock-multiline 'undecided')
>            (setq jit-lock-stealth-verbose t)
>            (setq jit-lock-mode t)
>         ;   (setq jit-lock-stealth-load 80)
>            ;; Maximum colors
>         ;   (setq font-lock-maximum-decoration t)
>           (setq font-lock-maximum-decoration '((tex-mode . 2) (latex-mode .
> 2) (t . t)))
>         ))
>
>
> --
> Greetings
>
>    Pete
>
> Clovis' Consideration of an Atmospheric Anomaly:
>          The perversity of nature is nowhere better demonstrated
>          than by the fact that, when exposed to the same atmosphere,
>          bread becomes hard while crackers become soft.
>

Yo Sato wrote:

Hi all,

I recently switched to a different distribution of linux (FC6) and
installed emacs (ver 21.4) and encounter this problem: the colour
coding doesn't work (all black and white) for most major modes,
inlcuding TeX, lisp, html, etc. I say 'most' because there is one mode
that somehow works: the prolog major mode *installed in my home
directory* (not bit-compiled). This mode (prolog.el) is the only file
loaded from the home dir by .emacs.

With other machines with different distributions, with the same .emacs
file, it is working okay. The other functionalities of the above major
modes, as far as I can see, seem to be working okay.

What could I be missing? Any help would be appreciated: I might well
be rather cursory in the above description, being not sure what more
info I should provide, which I'd be happy to provide of course.

Regards,
Yo

>
>




      reply	other threads:[~2008-02-16 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-15 16:00 colour highlighting problem on major modes Yo Sato
2008-02-16  9:27 ` Peter Dyballa
2008-02-16 18:44   ` Yo Sato [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

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

  git send-email \
    --in-reply-to=a10948b50802161044u7a504c9bked3ff44c802ee935@mail.gmail.com \
    --to=yosato16@gmail.com \
    --cc=Peter_Dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.