Emacs mode question: backward-sexp & forward-sexp for begin

Hi all,

Is there a Ruby Emacs mode where I can do M-C-b (backward-sexp) and
M-C-f (forward-sexp) for “begin”…“end” too [*], and not just for
“(”…")", “{”…"}", etc? I’d like to use “begin”…“end” more to
delimit multiline blocks because it seems neater/creates less noise,
but many times I end up using “{”…"}" for the above sole reason. I
find easy jumping like this more useful than folding (which Emacs
doesn’t do particularly well, anyway).

[*] If it can additionally do “if”…“elsif”…“else”…“end”,
“def”…“end”, etc. too then it would be infinitely more wonderful.

Regards,
dave

David G. [email protected] writes:

[*] If it can additionally do “if”…“elsif”…“else”…“end”,
“def”…“end”, etc. too then it would be infinitely more wonderful.

Regards,
dave

Hi David,

Does C-M-n / C-M-p do what you want?

Cheers,
George.

George O. wrote:

Hi David,

Does C-M-n / C-M-p do what you want?

Why yes, thank you! I should’ve checked for ruby-* functions first, doh.

Regards,
David