From: Chuck Bernard <chuck@logicvision.com>
Subject: Re: how to set c-offsets-alist
Date: Fri, 21 Jun 2002 10:27:11 -0700 [thread overview]
Message-ID: <3D1361EE.26B80501@lvision.com> (raw)
In-Reply-To: 20020621132626.18534.qmail@web20308.mail.yahoo.com
Subhakar K S wrote:
> How do I set the values for various c/c++ syntactic
> symbols using "c-offsets-alist".
>
> I want to set this values in my ~/.emacs file.
>
> Any example peice of ~/.emacs will be helpful for
> me to copy paste.
>
> thanks,
> Subhakar.
Here is my example from my .emacs file. Read the comment to learn more
about customizing the values.
//Chuck
;If you go to a line in a c++ file and type C-c C-o it will tell you the name
;of the syntactic symbol to use in c-set-offset (or below in the list).
(setq c-style-alist
(append '(("ETX"
(c-basic-offset . 2)
(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 . +)
(substatement-open . 0)
(case-label . +)
(friend . -)
(access-label . -)
(inclass . 4)
(inline-open . 0))))
c-style-alist))
(setq c-default-style "ETX")
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
prev parent reply other threads:[~2002-06-21 17:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 13:26 how to set c-offsets-alist Subhakar K S
2002-06-21 16:25 ` Dave Lawrence
2002-10-18 20:07 ` setting c-offsets-alist variables from "headline"? Dave Lawrence
[not found] ` <mailman.1034971655.16649.help-gnu-emacs@gnu.org>
2002-10-18 20:19 ` Michael Slass
2002-06-21 17:27 ` Chuck Bernard [this message]
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=3D1361EE.26B80501@lvision.com \
--to=chuck@logicvision.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.