all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: Re: using the cc mode
Date: Sat, 30 Jul 2005 23:30:04 +0000	[thread overview]
Message-ID: <sh2hcd.46.ln@acm.acm> (raw)
In-Reply-To: 87ek9gqeht.fsf@wash.edu

Baloff <washdc@wash.edu> wrote on 31 Jul 2005 05:29:34 +1000:
> Hello

> when I am writing stuff in a .cpp file, emacs is using the cc mode by
> default? correct in the mode line I have (C++/ah Abbrev Fill).  If I
> have stuff in my .emacs, does that cancel the default cc mode or adds
> to it?

CC Mode is a collection of 7 similar modes, of which C++ Mode is one.
(The others are C, Java, Objective C, IDL, Pike and AWK.)  The stuff in
your .emacs _configures_ CC Mode in two ways:  It makes the defaults for
indentation, etc., conform to your team's coding standards, and it sets
up your own personal preferences (things like Auto New Line.)

> not before I study emacs and Lisp in more details will I be able to
> answer my question.

A study which I earnestly urge you to embark upon.  Lisp is a much nicer,
more regular language than C or C++, and higher level, too.

You asked in another thread about making an "enum {" insert an
auto-newline.  I'll get back to you on that one.  :-)

[ .... ]

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

  reply	other threads:[~2005-07-30 23:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-30 19:29 using the cc mode Baloff
2005-07-30 23:30 ` Alan Mackenzie [this message]
2005-07-31  3:09   ` Baloff
2005-07-31  8:47     ` Alan Mackenzie

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=sh2hcd.46.ln@acm.acm \
    --to=acm@muc.de \
    /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.