This question is likely an expansion / duplicate of this question: how to highlight imported functions in python code?
My .py file looks like this:
from math import floor
(max(1, 8))
(floor(3.7))
Screenshot for reference:
max has font-lock applied to it. While floor has no font-lock applied.
Questions:
- How can I configure my setup (python-mode, elpy-mode) so that emacs recognises 'floor' as a function that font-lock should apply to.
- If there are no answers for #1, can you recommend a package which can help?