unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rodney Gordon II <meff@pobox.com>
Subject: font-lock not working correctly
Date: Fri, 17 Dec 2004 12:49:22 -0600	[thread overview]
Message-ID: <1103309362.4384.18.camel@ghreen> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1015 bytes --]

I am using emacs21 on Debian sid, to start things off.
The only elisp I load is color-theme.el and cperl-mode.el, both latest
version.

Attached is a image, showing the problem, and my .emacs file.

With my setup, font-lock never seems to highlight things like it should.
It highlights, but maybe only 2 or 3 colors. I have tried c files and
perl files, which work perfectly fine on others' systems with emacs (I
don't know if their system is different or not).

What I get is shown on the attached image, which is hardly helpful :)
The odd thing is that if I run emacs -q and do the things in my .emacs
file *manually*, it highlights perfectly.

Have asked on #emacs on FreeNode, but nobody seems to have an idea :/
I am hoping I am doing something simple wrong..

Any help would be greatly appreciated. Please mail me directly.

Thanks,
-r
-- 
Rodney Gordon II (meff)             |         meff <at> pobox <dot> com
http://www.spherevision.org         |                      AIM: mefforz

[-- Attachment #1.1.2: messed.jpg --]
[-- Type: image/jpeg, Size: 44032 bytes --]

[-- Attachment #1.1.3: dotemacs --]
[-- Type: text/plain, Size: 753 bytes --]

;;; make load-path ~/elisp
(add-to-list 'load-path (expand-file-name "~/elisp"))


;;; general setup
;; enable font lock globally
(global-font-lock-mode 1)

;; setup syntax hilighting
(require 'color-theme)
(color-theme-charcoal-black)

;; show parens
(show-paren-mode 1)

;; make backing up smarter
(setq
	backup-by-copying t            ; don't clobber symlinks
	backup-directory-alist
	'(("." . "~/.emacsbackup"))    ; don't litter my fs tree
	delete-old-versions t
	kept-new-versions 6
	kept-old-versions 2
	version-control t)             ; use versioned backups


;;; edit mode setup
;; use cperl and set some defines
(defalias 'perl-mode 'cperl-mode)
(setq cperl-invalid-face (quote off))
(setq cperl-indent-level 4)

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2004-12-17 18:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-17 18:49 Rodney Gordon II [this message]
2004-12-17 20:09 ` font-lock not working correctly Peter Dyballa
2004-12-17 20:36   ` Rodney Gordon II
2004-12-17 20:43 ` Peter Dyballa
2004-12-17 20:58   ` Rodney Gordon II
2004-12-17 21:14 ` Peter Dyballa
2004-12-17 21:45   ` Rodney Gordon II
2004-12-26 23:02 ` Kai Grossjohann

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=1103309362.4384.18.camel@ghreen \
    --to=meff@pobox.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).