Manuel Kaufmann
Manuel Kaufmann

Reputation: 480

Color Python keyword arguments in Emacs

Is it possible to colorize Python keyword arguments in emacs?

For example, Github and PyCharm do this:

How I can get the same behaviour in Emacs? Does exist a face for this that I can configure?

Just in case, I'm using material theme.

Upvotes: 3

Views: 423

Answers (1)

sacuL
sacuL

Reputation: 51335

Syntax highlighting should be built-in and on by default as of emacs 22.1 and later (according to this documentation). It seems that maybe font-lock-mode got turned off for you somehow.

Try M-x font-lock-mode.

This is what it looks like disabled for me with the material theme (and no other packages involved):

font-lock-mode disabled

And when I enable it:

font-lock-mode enabled

Upvotes: 1

Related Questions