[PLUG] Emacs shortcuts?

Randal L. Schwartz merlyn at stonehenge.com
Mon May 5 07:31:02 UTC 2003


>>>>> "Rich" == Rich Shepard <rshepard at appl-ecosys.com> writes:

Rich>   I am surprised to learn that there is apparently no keyboard
Rich> shortcut in emacs to moved to a specific line number. When I
Rich> type 'c-h w' for 'goto-' I see that it's only on the edit menu,
Rich> and two levels down. Doesn't seem very efficient to me.

Rich>   What have you emacs experts done to bind this command to a keystroke?

Why are you going to a line number?  Are you looking at error
messages?  If so, run that same command under M-x compile CR, and the
line numbers are automatically located for you!  See "running compilations
under emacs" in the info file for details.

But when I do something outside that, I have just learned to type M-x
got TAB CR to get to "goto-line" quickly.

Rich>   Also, is there a way to automate line wrapping in a text file when it's
Rich> been exported (in my case by OO.o) with each paragraph as a single line?
Rich> Again, it's not very efficient to go through the equivalent of a 60-page
Rich> book by hand separating paragraphs so they properly import into LyX.

Set the region around the whole thing, then M-x indent-region CR.  Usually
works.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the PLUG mailing list