Bug 15582 - syntax coloring by default
Summary: syntax coloring by default
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: emacs
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-06 20:08 UTC by mal
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-08-06 20:08:04 UTC
Embargoed:


Attachments (Terms of Use)

Description mal 2000-08-06 20:08:02 UTC
Can emacs be set with syntax coloring on by default?
Currently emacs from RedHat 7.0 beta comes with no 
syntax coloring set. 
It is much more convinient to work with text when 
language structures/keywords are colorized .

Comment 1 Trond Eivind Glomsrxd 2000-08-06 20:11:30 UTC
It should already be on by default in the default .emacs (the one in /etc/skel/
, which is copied to all new users)/

Comment 2 mal 2000-08-06 20:22:33 UTC
Yes, it does syntax coloring for display.

Also it may be much improved for printing.
Now it does PostScript printing with  the same coloring
highligting as for terminal which leads to balck/grey on printing.
It will be much more convinient to 
highlight syntax/structure for printing 
by fonts, not by colors.
Colors are good for terminal,
fonts for printer.

Comment 3 Trond Eivind Glomsrxd 2000-08-06 20:27:10 UTC
Any idea on how to do that?

Comment 4 mal 2000-08-06 22:00:13 UTC
I seen this onece done by another person.
I will look at how this can be done.

Comment 5 mal 2000-08-07 00:55:53 UTC
In emacs you can do this by using commands (in emacs)
M-x make-face-bold
	font-lock-comment-face
Which will make comments bold.
Similar command can be executed for the other things.
There are many web pages around, but they offer hints,
but not a complete solution.
The best I found is
-----------
http://mirror.ncsa.uiuc.edu/procmail/ssjaaa/ema-font.html 
4.10 Font-lock colours - how to change defaults? [toc] 

       Kai Grossjohann grossjoh.uni-dortmund.de 

       With Emacs 19.30 and up you can set font-lock-face-attributes which is
rather simple to understand, I think. 

             (setq font-lock-face-attributes
                 '(
                   ;; FACE              FORE    BACK BOLD? IT? UNDERLINE?
                   (font-lock-type-face "green" nil  nil   t   nil)
                   ;; ...more lines like this...
                 ))
----------
So you can set whatever face you want.
The only problem - I did not find pre-set faces.


Note You need to log in before you can comment on or make changes to this bug.