Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to get the syntax highlighting in the Cocoa Emacs app to be the same as the standard version. For example with iPython, the difference is this:

Emacs.app

Emacs.app

emacs (running in iTerm)

enter image description here

I know the difference is subtle but it makes a difference!!!

I have noticed that iTerm only renders the colours nicely when the terminal type is set to xterm, but I can't see anywhere to do that inside Emacs.

Is there anything I can change here to get the colours looking the same?

share|improve this question

1 Answer 1

M-x customize-face RET or M-x list-faces-display RET. You should become familiar with the fonts faces so that you can customize every aspect of Emacs, from the modeline to the finges to the line numbers. Once you make a change and save it to your .emacs file, you can look inside and see how it is done. Many people like to use color themes, which is a simplified way to select from various predefined syntax highlighting schemes. In the future, you can also set up your own font-lock or hi-lock keywords and phrases once you become more comfortable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.