Red Hat Bugzilla – Bug 15582
syntax coloring by default
Last modified: 2008-05-01 11:37:57 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 .
It should already be on by default in the default .emacs (the one in /etc/skel/
, which is copied to all new users)/
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.
Any idea on how to do that?
I seen this onece done by another person.
I will look at how this can be done.
In emacs you can do this by using commands (in emacs)
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
4.10 Font-lock colours - how to change defaults? [toc]
Kai Grossjohann email@example.com
With Emacs 19.30 and up you can set font-lock-face-attributes which is
rather simple to understand, I think.
;; 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.