[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: customizing Emacs



Though the question has been answered, I think you'll find this
resource valuable when dealing with emacs customization:

http://www.dotfiles.com/


On Thu, Oct 18, 2001 at 04:23:06PM +0300, Tuomas Pellonpera wrote:
> Hi!
> 
> I am trying to customize my Emacs and its cc-mode. I prefer "bsd" style,
> AKA Allman style, to the "gnu" style. With the help of
> http://www.delorie.com/gnu/docs/emacs/cc-mode_22.html, I was able to
> change the style to "bsd."
> 
> However, I noticed that in bsd style the indentation level seems to be 4.
> I would like it to be 3. How could I accomplish this SIMPLE customization?
> I tried to find the answer in
> http://www.gnu.org/manual/emacs-20.3/html_mono/emacs.html, but no avail.
> (I'm sure the answer IS there, I just couldn't get it.)
> I pasted my erroneus .emacs file at the end of this message. Could someone
> show me how to set the indentation level to 3? Much oblige!
> 
> ** BEGIN of my .emacs **
> 
> (defun my-c-mode-common-hook ()
>   ;; use Allman (BSD) style for all C like languages
>   (c-set-style "bsd")
>   ;; other customizations can go here
>   ;; This is where something goes WRONG. :-(
>   (c-style-alist (bsd c-basic-offet . 3))
>   )
> (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
> 
> ** END of my .emacs **



Reply to: