http://qs1969.pair.com?node_id=292889


in reply to 2Re: a Couple of questions!
in thread a Couple of questions!

Making a table is so much easier with the mouse

With a decent editor1, this is simply not true. A few lines of lisp in your configuration go a *long* way toward reducing the amount of typing you have to do. In cperl-mode (with my custom enhancements in the hook), I hit one keystroke for my insert-tag function, type in table, hit Enter, and the following is inserted:

<table width=\"100%\"><thead> <tr><th></th></tr> </thead><tbody> <tr><td></td></tr> </tbody></table>
And it leaves my cursor positioned inside the th. Similar shortcuts exist for other common tasks. My fingers never have to leave the keyboard.


1 -- By <q>a decent editor</q> I of course mean Emacs, but this is not intended to start an editor war; feel free to customise your editor of choice in a similar fashion, if it provides the facilities for you to do so.

$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/