{"id":1462,"date":"2011-08-10T11:47:00","date_gmt":"2011-08-10T11:47:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2011\/08\/10\/ruby-mode-use-describe-mode-within-emacs\/"},"modified":"2011-08-10T11:47:00","modified_gmt":"2011-08-10T11:47:00","slug":"ruby-mode-use-describe-mode-within-emacs","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2011\/08\/10\/ruby-mode-use-describe-mode-within-emacs\/","title":{"rendered":"ruby mode : use describe-mode within emacs"},"content":{"rendered":"<p>\t\t\t\tHere is a rather brief description, at least covering the very special keyboard shortcuts.<br \/>\nWhat a pity, that I haven&#8217;t been able to find it online so far.<\/p>\n<p>But here it is:<\/p>\n<p>\nRuby mode:<br \/>\nMajor mode for editing Ruby scripts.<br \/>\nTAB properly indents subexpressions of multi-line<br \/>\nclass, module, def, if, while, for, do, and case statements, taking<br \/>\nnesting into account.<\/p>\n<p>The variable ruby-indent-level controls the amount of indentation.<br \/>\nkey \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 binding<br \/>\n&#8212; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;&#8212;-<\/p>\n<p>C-c<span>\t\t<\/span>Prefix Command<br \/>\nTAB<span>\t\t<\/span>ruby-indent-line<br \/>\nC-j<span>\t\t<\/span>reindent-then-newline-and-indent<br \/>\nRET<span>\t\t<\/span>newline<br \/>\nESC<span>\t\t<\/span>Prefix Command<br \/>\n{<span>\t\t<\/span>ruby-electric-brace<br \/>\n}<span>\t\t<\/span>ruby-electric-brace<\/p>\n<p>C-c ,<span>\t\t<\/span>Prefix Command<\/p>\n<p>C-M-a<span>\t\t<\/span>ruby-beginning-of-defun ;; actually \u2026-of-class<br \/>\nC-M-e<span>\t\t<\/span>ruby-end-of-defun<\/p>\n<p>C-M-f<span>\t\t<\/span>ruby-forward-sexp<br \/>\nC-M-b<span>\t\t<\/span>ruby-backward-sexp<\/p>\n<p>C-M-h<span>\t\t<\/span>backward-kill-word<\/p>\n<p>C-M-p<span>\t\t<\/span>ruby-beginning-of-block<\/p>\n<p>C-M-n<span>\t\t<\/span>ruby-end-of-block<\/p>\n<div>\n<\/div>\n<p>\nC-M-q<span>\t\t<\/span>ruby-indent-exp<\/p>\n<p>C-c , a<span>\t\t<\/span>rspec-verify-all<br \/>\nC-c , t<span>\t\t<\/span>rspec-toggle-spec-and-target<br \/>\nC-c , v<span>\t\t<\/span>rspec-verify<\/p>\n<div>\n<\/div>\n<p>\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a rather brief description, at least covering the very special keyboard shortcuts. What a pity, that I haven&#8217;t been able to find it online so far. But here it is: Ruby mode: Major mode for editing Ruby scripts. TAB properly indents subexpressions of multi-line class, module, def, if, while, for, do, and case [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[294],"tags":[],"class_list":["post-1462","post","type-post","status-publish","format-standard","hentry","category-keyboard-shortcuts"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-nA","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=1462"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/1462\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=1462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=1462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}