1

I want my local function names (those declared in the current file and picked by font-lock-function-name-face) and my variable names (font-lock-variable-name-face) to be highlighted across the whole buffer. Currently font-lock-function-name-face and font-lock-variable-name-face highlight only declarations and not references.

xged
  • 151
  • 4
  • So do you just want to change the background color of font-lock-function-name-face and font-lock-variable-name-face then? I feel like there's a nuance here that I'm not following in your original question. – cyberbisson Jul 03 '19 at 16:07
  • @cyberbisson currently only declarations are highlighted and not references. – xged Jul 03 '19 at 20:03
  • Oh ok, got it, thanks! – cyberbisson Jul 03 '19 at 20:22
  • I think that would be very confusing for languages where you can import names from other files like Cʼs #include or Pythonʼs import. It would be even more confusing when names are just there, like in Elisp (you donʼt need to import anything for a function defined outside your file to be available). – GergelyPolonkai Jul 11 '19 at 06:25
  • @GergelyPolonkai How is it confusing? I want syntax highlighting to distinguish between these two fundamentally different scopes. – xged Jul 11 '19 at 10:53
  • 1
    @xged ah, in that case i misunderstood your question. Sorry for the noise! – GergelyPolonkai Jul 11 '19 at 12:43

0 Answers0