all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jai Dayal <dayalsoap@gmail.com>
To: "Peter Münster" <pmlists@free.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to set c-set-style at startup?
Date: Tue, 19 Jul 2011 20:34:05 -0600	[thread overview]
Message-ID: <CAMJ-YiSA3sCVK1WRuo4Ryn1Bh_Xr21AZjD7ZAG8BUd-+MpYvjQ@mail.gmail.com> (raw)
In-Reply-To: <8762myyi93.fsf@micropit.couberia.bzh>

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

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
>
>
>

[-- Attachment #2: Type: text/html, Size: 1339 bytes --]

  reply	other threads:[~2011-07-20  2:34 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 [this message]
2011-07-20  5:30     ` Andreas Röhler
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=CAMJ-YiSA3sCVK1WRuo4Ryn1Bh_Xr21AZjD7ZAG8BUd-+MpYvjQ@mail.gmail.com \
    --to=dayalsoap@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pmlists@free.fr \
    /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.