From: Gordon Hartley Date: 2003-04-26T23:48:08+09:00 Subject: Re: Ruby mode for Emacs... On Fri, 25 Apr 2003 14:17:22 +0200, Szymon Drejewicz wrote: >Stephan K�mper wrote: > >> nobu.nokada@softhome.net wrote: >>> Hi, >> >> 8< Lines of questions and advice snipped... >> >>> It's for old Emacsen, just ignore. >>> >> >> Thanks a lot. After I've figured out that it may be a good idea to >> activate the syntax highlighting (resp. to put >>(global-font-lock-mode >> 1)<< into my .emacs), it's great. >> Now I'll "just" have to find out all the rest about Emacs. Can't take >> more than a couple of years I think... >> >> Cheers >> >> Stephan > >Yes, I love Emacs too. > >To repeat a command use > ESC number >examples: >to move 10 lines down ---> ESC 10 C-n >to insert 80 stars ---> ESC 80 * > >To save a macro use > C-x ( > commands_sequence > C-x ) >example: >To delete first and last word in current line ---> > > C-x ( C-a M-d C-e M-Backspace C-n C-x ) > >to run macro use ---> C-x e > >Now if you want to delete first and last word in next 100 lines use just > >ESC 100 C-x e > >:-) Even better, rather than counting the lines, set mark on the first line, move point to the last line and use: M-x apply-macro-to-region-lines (i.e. M-x appl{Tab} using completion)