Re: customizing Emacs
%% Tuomas Pellonpera <tp58494@uta.fi> writes:
You're probably much better off asking on the gnu.emacs.help group.
tp> (defun my-c-mode-common-hook ()
tp> ;; use Allman (BSD) style for all C like languages
tp> (c-set-style "bsd")
tp> ;; other customizations can go here
tp> ;; This is where something goes WRONG. :-(
tp> (c-style-alist (bsd c-basic-offet . 3))
Sorry, this is not even close the proper format :)
First, c-style-alist is a variable, not a function: here you're invoking
it like a function. Second, the "value" you're trying to set it to is
not an alist.
Change the last line to this:
(setq c-style-alist '(("bsd" (c-basic-offset . 3))))
and you should be much closer to where you want to be.
However, it seems to me that there is a better way of doing this. I
once wrote a completely customized setup with CC Mode but it's been a
long time and I forget the nuances. Folks on gnu.emacs.help (there's a
mailing list too: help-emacs@gnu.org) will be able to give you more
information.
HTH.
--
-------------------------------------------------------------------------------
Paul D. Smith <pausmith@nortelnetworks.com> HASMAT--HA Software Mthds & Tools
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
Reply to: