Textmate is for the weak
Again Kidding, but I know at least one reader who will bristle at that…
I found a great (maybe the only one?) Rails minor mode for emacs, as well as the associated page on the rails wiki.
I am sure this is not news to the emacs users among us, but I thought it was leet.
Along with the following table of snippets enabled by this mode (reprinted without permission here)
Ruby Mode Snippets
| ra | render-action |
| ral | render-action-layout |
| rf | render-file |
| rfu | render-file-use_full_path |
| ri | render-inline |
| ril | render-inline-locals |
| rit | render-inline-type |
| rl | render-layout |
| rn | render-nothing |
| rns | render-nothing-status |
| rp | render-partial |
| rpc | render-partial-collection |
| rpl | render-partial-locals |
| rpo | render-partial-object |
| rps | render-partial-status |
| rt | render-text |
| rtl | render-text-layout |
| rtlt | render-text-layout_true |
| rts | render-text-status |
| rcea | render-component-action |
| rcec | render-component-controller |
| rceca | render-component-controller-action |
| rea | redirect_to-action |
| reai | redirect_to-action-id |
| rec | redirect_to-controller |
| reca | redirect_to-controller-action |
| recai | redirect_to-controller-action-id |
| flash | flash |
| logi | logger.info |
| par | params |
| ses | session |
| belongs | belongs_to-class-foreign_key |
| many | has_many-class-foreign_key-dependent |
| one | has_one-class-foreign_key-dependent |
| valpres | validates_presence_of |
| valuniq | validates_uniqueness_of |
| valnum | validates_numericality_of |
HTML Mode Snippets
| ft | form_tag-action |
| lia | link_to-action |
| liai | link_to-action-id |
| lic | link_to-controller |
| lica | link_to-controller-action |
| licai | link_to-controller-action-id |
| %h | h … |
| %if | if … end |
| %unless | unless … end |
| #ifel | if … else … end |
| % | <% … %> |
| %% | <%= … %> |
They say imitation is the sincerest form of flattery. At least emacs copies from the best!
Now stop messing around with this emacs stuff, it’ll only lead to tragedy.