Bug 15582 - syntax coloring by default
syntax coloring by default
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: emacs (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-06 16:08 EDT by mal
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-06 16:08:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mal 2000-08-06 16:08:02 EDT
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 16:11:30 EDT
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 16:22:33 EDT
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 16:27:10 EDT
Any idea on how to do that?
Comment 4 mal 2000-08-06 18:00:13 EDT
I seen this onece done by another person.
I will look at how this can be done.
Comment 5 mal 2000-08-06 20:55:53 EDT
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@ls6.informatik.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.