[Top][All Lists]

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

Re: How to change indent width one buffer at a time?

From: despen
Subject: Re: How to change indent width one buffer at a time?
Date: Mon, 21 Dec 2009 12:18:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Mat <address@hidden> writes:

> despen wrote:
>> No, that's not the answer...
>> Go to the first hit, then select the first item.
>> You'll see:
>> ;; -*- mode: Lisp; fill-column: 75; comment-column: 50; -*
>> Which is good for Lisp, but I think you're looking for C.
>> So you want:
>> /* -*- mode: C; c-basic-offset: 1; -*- */
>> Put a line like that at the top of each file with the offset the file
>> uses.
> An interesting feature.  But no, not the answer in this case, because it
> involves putting editor-specific lines inside shared code, and I'm the only
> person in this office using emacs.  Also, it only seems to allow you to set
> one offset for a particular file, which is no good here since there are
> often different indent widths at different places within the same file.

Different offsets in the same file.
That's nuts!

C-x h

(Make region whole buffer, indent-region.)

reply via email to

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