all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to set c-set-style at startup?
Date: Wed, 20 Jul 2011 07:30:54 +0200	[thread overview]
Message-ID: <4E26680E.3050002@easy-emacs.de> (raw)
In-Reply-To: <CAMJ-YiSA3sCVK1WRuo4Ryn1Bh_Xr21AZjD7ZAG8BUd-+MpYvjQ@mail.gmail.com>

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<pmlists@free.fr>  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



  reply	other threads:[~2011-07-20  5:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 22:58 how to set c-set-style at startup? Jai Dayal
2011-07-18 23:17 ` Deniz Dogan
2011-07-19  5:03 ` Peter Münster
2011-07-20  2:34   ` Jai Dayal
2011-07-20  5:30     ` Andreas Röhler [this message]
2011-07-20  7:15     ` Peter Münster
2011-07-20 16:12       ` Jai Dayal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E26680E.3050002@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.