4

There is alllll kinds of information out there about emacs color schemes, font locks, etc but I am having trouble getting where I want to be. Basically I would like to know what are some of the best font faces to set in order to have a nice solid color theme which is a good cross language solution. I am ending up with lots of language syntax (parens, brackets, operators, etc) not highlighted in some places when I expect them to be.

Below are the faces I am currently setting:

 font-lock-builtin-face
 font-lock-comment-face
 font-lock-comment-delimiter-face
 font-lock-doc-face
 font-lock-doc-string-face
 font-lock-function-name
 font-lock-keyword-face
 font-lock-negation-char-face
 font-lock-preprocessor-face
 font-lock-string-face
 font-lock-type-face
 font-lock-variable-name-face

What if any major faces am I missing here?

Drew
  • 29,895
  • 7
  • 74
  • 104
re5et
  • 4,305
  • 3
  • 25
  • 26

3 Answers3

9

Don't do it like this. Choose a colour-theme that looks "okay" and when you're doing some work and find something unsatisfactory, customise that face to suite your taste.

I once knew someone who actually did an xlsfonts and opened an xterm for each one to decide which one he wanted to use while coding. Not thing kind of way I'd like to spend my time. :)

Noufal Ibrahim
  • 71,383
  • 13
  • 135
  • 169
  • Is there some simple way to find out what faces are applied to a region? I keep running into stuff I would like to change (or highlight to begin with), but don't have any easy time tracking it down. – re5et Feb 13 '11 at 18:07
  • 1
    Not an entire region (since there might be multiple faces in there) but if you do an `M-x` `customize-face`, it will by default prompt you with the face your cursor is on. Try it. – Noufal Ibrahim Feb 13 '11 at 18:33
  • You're welcome. YOu can also do an `M-:` `(text-properties-at (point))` if you want. – Noufal Ibrahim Feb 14 '11 at 04:05
  • 2
    C-u C-x = will give you all the font overlays at point in a Help buffer – David Miller Apr 04 '11 at 09:10
0

zenburn is a beautiful color theme. I use the terminus font on debian.

0

anyhow, I give up trying to use best font in GUI system. I revert to Raster Font, use in DOS Prompt / if it is in Linux, a TTY. Now that is so simple :)

My main workstation is Windows. There is (off course) native Win32 GUI version of Emacs, but I prefer to run it in DOS Command Prompt, using I am using emacs -nw. Using a few trick (write app that draw black border around screen edges), a found it able to make an illusion that it is in a console mode.

I love console mode :)

swdev
  • 4,997
  • 8
  • 64
  • 106