InfiniteBarnacle9

joined 1 year ago
[–] [email protected] 1 points 1 year ago

Thanks. In this case I'm not only working with Org Mode but I can at least dive into that function and see how it is accomplishing the task for Org.

[–] [email protected] 1 points 1 year ago (1 children)

Nice. I think mark-defun is going to work out per other comments here but this is interesting.

Related question... I've not done a ton of elisp hacking but can I ask how you found uot about these functions? I've never heard of the two key ones: eobp and current-indentation.

 

Hey, folks.

I've been digging around to see if there's a package for this but the closest I've found is expand-region and that's not quite it...

Take the indent level and block at the line where the point currently sits and set the mark region to the end of the current block + indent level. I hope that explanation is clear.

This seems very much in the wheelhouse of Emacs and I'm guessing it exists -- maybe even in core as opposed to a package -- and I'm just not looking in the right place.

thx