cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

Overriding cquery's semantic highlighting of a specific keyword? #73

Open zurdmont opened 4 years ago

zurdmont commented 4 years ago

Say I've typedef'd static to static_global and I want it to use my keyword color. I'd do something like...

(font-lock-add-keywords 'c-mode '(("static_global" . 'font-lock-keyword-face)))

This works, until I enable cquery's semantic highlighting which seems to override it with a different color. I don't want to outright get rid of cquery's highlighting, but is there a way for me to override it in this case?