From: exits funnel <exitsfunnel@yahoo.com>
Subject: Still a bit of trouble with my cc-mode style
Date: Sat, 13 Mar 2004 10:12:26 -0800 (PST) [thread overview]
Message-ID: <20040313181226.47183.qmail@web40502.mail.yahoo.com> (raw)
Hello,
It turns out I'm still having a little trouble with my
c-style. Here's what I've got now:
(require 'cc-mode)
(defconst exits-c++-style
'( "bsd"
(c-offsets-alist . (
(substatement-open . 0)
(block-open . 0)
(statement-cont . 0)
(access-label . 0)
(inclass . '+)
(topmost-intro . '+)
(inline-open . '+)
)
)
(c-echo-syntactic-information-p . t)
)
"Exit's C++ Programming Style Comment"
)
;; Customizations for all modes in CC Mode.
(defun exits-c-mode-common-hook ()
(message "In exits-c-mode-common-hook")
(c-add-style "exits-c++-style" exits-c++-style t)
(global-set-key "\C-ci" 'c-indent-line-or-region)
(setq c-basic-offset 2)
)
(add-hook 'c-mode-common-hook
'exits-c-mode-common-hook)
;;C++ Hook
(defun ef-c++-setup ( )
(message "Exit: In ef-c++-setup( )")
(c-set-style "exits-c++-style")
)
(add-hook 'c++-mode-hook 'ef-c++-setup)
The messages are printed so I know my hooks are being
called and Emacs has no further complaints when I open
a C++ file. However when I try to edit said file as
follows:
class foo
{
public:
emacs complains thusly when I enter the ':'.
c-evaluate-offset: Invalid function: #<subr quote>
I've read about 'subr' in the emacs manual but I still
have no clue what the problem is or how to fix it. Am
I not 'requiring' something I shoud be? Any thoughts
anyone might have would be greatly appreciated.
-exits
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
reply other threads:[~2004-03-13 18:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040313181226.47183.qmail@web40502.mail.yahoo.com \
--to=exitsfunnel@yahoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).