help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [OT Personal Memory failure] Can someone remind me how to formatcode


From: Drew Adams
Subject: RE: [OT Personal Memory failure] Can someone remind me how to formatcode
Date: Sat, 20 Oct 2007 19:04:28 -0700

> I know there is a keyboard command in emacs that will format a region
> of some common kinds of code such as shell script, emacs lisp, perl
> etc.
> I recall having marked out a region then using some keyboard combo to
> format it.
>
> M-x apropos RET format RET   gives far to many confusion hits to find
> what I want.

If by "format" you mean reindent in a conventional way, then try `C-M-q'
with the cursor at the beginning of a code section (e.g. defun in Lisp).






reply via email to

[Prev in Thread] Current Thread [Next in Thread]