[Top][All Lists]

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

Re: tidy up code

From: Gabriel Parrondo
Subject: Re: tidy up code
Date: Sun, 23 Dec 2007 03:01:32 -0300

El vie, 21-12-2007 a las 13:30 +0100, Umar Said escribió:
> On Fri, 21 Dec 2007 04:07:05 -0800, nullius.filius wrote:
> > X-no-archive: Yes
> > 
> > 
> > You have to give a hint to emacs that you want to format a c++ file.
> > You do that by naming the file before you try and format it.
> > 
> > Go to the file menu and click on the menu item 'Visit new File' go to
> > the directory you want to save your file, and type in your file name
> > (test.cpp) and click the open button.
> > 
> > Now paste your code into emacs.
> > 
> > Once emacs has a hint on what type of file it is formatting, then
> > it can format it.
> Thank you nullius. It solves the problem.

Note that you don't really need to name the file with the usual
extension for the file format. You can tell emacs that you're editing a
C++ file with "M-x c++-mode", despite of its name.

I strongly recommend reading the emacs tutorial (C-h t) if you didn't

Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: address@hidden

"The only difference between theory and practice is that, in theory, there's no 
difference between theory and practice."

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

reply via email to

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