1

I currently have (paren-set-mode 'paren) in my init.el, and it does a good job of highlighting the area between parentheses. However, I was wondering if there was a way to highlight the expression I am inside of. So if I have this code (fads fasd fasdf^ asdf asfds), with the ^ representing my cursor, could I highlight the expression automatically? Is there a way to do this so that it would also do the same for the do/end blocks like in Elixir and Ruby?

  • Which expression enclosing point? There are at least two in what you show, and in general there can be many. IOW, your request is underspecified. – Drew Sep 3 '17 at 0:57
2

There are a couple of options detailed on the Wiki:

  • Thank you @phils! That's exactly what I was looking for. – kuwze Sep 3 '17 at 1:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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