Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color Python keyword arguments in Emacs

Is it possible to colorize Python keyword arguments in emacs?

For example, Github and PyCharm do this:

  • Github
  • PyCharm

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.

like image 877
Manuel Kaufmann Avatar asked Nov 26 '25 23:11

Manuel Kaufmann


1 Answers

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

like image 82
sacuL Avatar answered Nov 29 '25 14:11

sacuL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!