Color Python keyword arguments in Emacs

406 views Asked by At

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.

1

There are 1 answers

2
sacuL On

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