I'd like to know which @media query I'm in (those blocks are several pages long, so can't see them in a screenful), without going 2 C-M-u C-u C-SPC etc. each time I want to check. There is which-function-mode, but it only shows the selector, not the surrounding @media query. Anyone got a trick for this?

1 Answer 1


If you're feeling adventurous, you can try with CSS mode from the current master branch. which-function-mode should show the surrounding media query after this commit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.