When editing a long Maven pom.xml
I may see a screen full of <plugin>
blocks with their parent tags out of sight. I would like to know whether I'm looking at a /project/build/plugins/plugin
tag or a /project/profiles/profile/build/plugins/plugin
tag.
Is there an easy way to display this information in the modeline or on the top of the screen?
which-func-mode
is ready to use. If I would like to do the same in XML, do I really have to define a function myself? And actually the linked function just prints this info to the echo area on demand, even more code is needed to make it show up in the modeline permanently. Isn't there a Melpa package that provides this functionality?which-func-mode
and found that it is extensible by custom functions, so all that is needed to get thenxml-where
function work withwhich-func-mode
is(add-hook 'which-func-functions 'nxml-where)
. @omajid if you combine these two pieces of information into an answer, I am happy to accept it.