Suppose I have this structure:
((1 2 3)
(4 5 6)
(7 8))
I can move backward and forward sexp-by-sexp (one-by-one) with backward-sexp
and forward-sexp
.
However, I often have dozens of sexps to navigate, and I am looking for a command that takes me directly to the last (or first) sexp at that level. A command that takes me to the beginning or end of the enclosing sexp also works.
To illustrate using the example above, pretend I have the cursor positions start-a
, end-a
, start-b
, and end-b
.
What I want is to jump from start-a
to end-a
, and from start-b
to end-b
.
(start-a (start-b 1 2 3 end-b)
(4 5 6)
(7 8) end-a)