bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Possible emacs bug in c-mode


From: Knut Forkalsrud
Subject: Re: Possible emacs bug in c-mode
Date: Wed, 13 Jun 2001 01:15:46 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.91

"the Smith Family" <address@hidden> writes:

>     if (true) {
>         doSomething();               // ok
>     }
>     if (true)
>         {                                    // argh!
>             doSomething();
>         }

I would use this in my .emacs :


(require 'cc-styles)
(add-to-list
 'c-style-alist
 '("kf-java" "java"
   (c-basic-offset . 4)
   (c-offsets-alist
    (substatement-open . 0))))

(add-hook 'java-mode--hook (function
                        (lambda ()
                          (c-set-style "kf-java"))))


-Knut

-- 
Hard work often pays off after time.  But laziness always pays off now.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]