Forum: Ruby Emacs mode question: backward-sexp & forward-sexp for begin.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ba7ab9d9f8f7b6c8fdd15e17bdc07b62?d=identicon&s=25 David Garamond (Guest)
on 2005-12-16 04:42
(Received via mailing list)
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
851246810c70dbfcc1815c636b054562?d=identicon&s=25 George Ogata (Guest)
on 2005-12-17 14:09
(Received via mailing list)
David Garamond <lists@zara.6.isreserved.com> 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.
Ba7ab9d9f8f7b6c8fdd15e17bdc07b62?d=identicon&s=25 David Garamond (Guest)
on 2005-12-18 05:41
(Received via mailing list)
George Ogata 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
This topic is locked and can not be replied to.