Bug 15582

Summary: syntax coloring by default
Product: [Retired] Red Hat Linux Reporter: mal
Component: emacsAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-06 20:08:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.