From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: how to set c-set-style at startup? Date: Wed, 20 Jul 2011 07:30:54 +0200 Message-ID: <4E26680E.3050002@easy-emacs.de> References: <8762myyi93.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1311139957 2181 80.91.229.12 (20 Jul 2011 05:32:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2011 05:32:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 20 07:32:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjPOb-0001B9-4a for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jul 2011 07:32:33 +0200 Original-Received: from localhost ([::1]:43086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjPOZ-0002ZM-Vt for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jul 2011 01:32:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjPND-0002ZE-Tq for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 01:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjPNC-0001cy-Nq for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 01:31:07 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:50726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjPNC-0001cn-B3 for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 01:31:06 -0400 Original-Received: from [192.168.178.27] (brln-4dbc43a8.pool.mediaWays.net [77.188.67.168]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MLkF5-1Qj8WZ3kUV-000vCa; Wed, 20 Jul 2011 07:31:05 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: X-Provags-ID: V02:K0:auOwqh3mGKYZpj1eCg2HnDX5JiuCUjFREg6GEPCHcEa ZJ4tt+GIixSdrvdYxkdk8NxNBLHyagyUyM+OIrsL3l5JH9AP0/ M5gWxve/5knpAH8W8FjyG91ekeBNcJ9EwH1UlwqJARvC4pqMTi /6wBCQa2aDAu4T2o8zCjwwQ50TM86Z3Tt0PzakXdqAj1tqh4vO fTUEwcXWZZlMooTRRAmmniRh4P3PvpxlG0UNIV4nfo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81691 Archived-At: Am 20.07.2011 04:34, schrieb Jai Dayal: > I tried this, but it doesn't seem to be working. For example, I change the > style to the style I have in the code below, and the indentation will be > different. I can also put in garbage instead of "linux" and no errors > occur. > > Maybe I'm missing something? > > On Mon, Jul 18, 2011 at 11:03 PM, Peter Münster wrote: > >> On Tue, Jul 19 2011, Jai Dayal wrote: >> >>> It seems right now, I have to do c-set-style for each file/buffer I >> open. >>> Is there a way I can set this in my .emacs file so that all files will >> have >>> the same c style indentation? >> >> Without customize: >> >> --8<---------------cut here---------------start------------->8--- >> (add-hook 'c-mode-hook >> '(lambda () >> (c-set-style "linux") >> ... ; other settings >> )) >> --8<---------------cut here---------------end--------------->8--- >> >> -- >> Peter >> >> >> > Emacs' c-modes have it's own lists. Please consider a post onto bug-cc-mode@gnu.org cheers, Andreas