all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sarir Khamsi <sarir.khamsi@raytheon.com>
Subject: Re: Emacs changed indenting on me
Date: Fri, 01 Oct 2004 11:13:44 -0700	[thread overview]
Message-ID: <uk6ua8fxj.fsf@raytheon.com> (raw)
In-Reply-To: mailman.513.1096548315.2017.help-gnu-emacs@gnu.org

dave@adboyd.com (J. David Boyd) writes:

> Sarir Khamsi <sarir.khamsi@raytheon.com> writes:
>
>> Never mind...I did a diff between previous versions and found my
>> problem. Sorry.
>
> You're supposed to tell us what the problem was so that we can all learn!

Fair enough...this is what I took out:

(add-hook 'c-mode-hook
 	  (function (lambda ()
  		      (setq c-file-style "local"))))

(add-hook 'c++-mode-hook
  	  (function (lambda ()
  		      (setq c-file-style "local"))))
(c-add-style "local"
'((c-basic-offset . 3)
  (c-comment-only-line-offset . 0)
  (c-hanging-braces-alist . ((substatement-open before after)))
  (c-offsets-alist . ((topmost-intro        . 0)
		      (topmost-intro-cont   . 0)
		      (substatement         . 3)
		      (substatement-open    . 0)
		      (statement-case-open  . 3)
		      (statement-cont       . 3)
		      (access-label         . -3)
		      (inclass              . 3)
		      (inline-open          . 0)
		      ))))

I didn't think I needed it. After I got the initial reply, it all made
sense when I did the diff.

Sari

  parent reply	other threads:[~2004-10-01 18:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 18:33 Emacs changed indenting on me Sarir Khamsi
2004-09-29 19:16 ` EScott
2004-09-29 22:31 ` Sarir Khamsi
2004-09-30 12:38   ` J. David Boyd
     [not found]   ` <mailman.513.1096548315.2017.help-gnu-emacs@gnu.org>
2004-10-01 18:13     ` Sarir Khamsi [this message]
2004-10-01 19:44       ` EScott
     [not found] <mailman.370.1096485805.2017.help-gnu-emacs@gnu.org>
2004-09-29 21:09 ` Sarir Khamsi
2004-09-30 12:48   ` Greg Rowe

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=uk6ua8fxj.fsf@raytheon.com \
    --to=sarir.khamsi@raytheon.com \
    /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.