How to jump to the matching bracket? #215
Replies: 3 comments 4 replies
-
Use meow-block to select the paired parentheses, then you get the positions of the beginning and the end of brackets. Or use meow-bounds-of-thing to separately select round, square and curly parentheses. |
Beta Was this translation helpful? Give feedback.
-
not sure if you're aware already, but emacs comes with maybe you're not interested in my janky config for paren jumping, but i use something like this (defun jump-matching-pair ()
(interactive)
(cond ((looking-at "\\s\(") (forward-sexp) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-sexp)))) (only really looks intuitive with a block cursor imo) you can bind this to a key, % even: |
Beta Was this translation helpful? Give feedback.
-
I spent a bunch of time trying to figure out how evil does its matching, but then I realized I was more accustomed to the richer feature set of Evil Matchit. This is mainly because I spend most of my time in ruby-mode and want Well it turns out you can use Evil Matchit without Evil! So this is what I do:
|
Beta Was this translation helpful? Give feedback.
-
When reading through the commands I didn't see a way to jump to the matching bracket (
%
with VIM). Is this possible with meow?Beta Was this translation helpful? Give feedback.
All reactions