[PLUG] C++ style comments in C under emacs

Alice Corbin ali at axian.com
Thu Sep 19 00:58:53 UTC 2002


You could try:

(setq auto-mode-alist
  (append '(("\\.c$"  . c++-mode)
            ("\\.h$"  . c++-mode)
           ) auto-mode-alist))

in your .emacs file.


On Wed, Sep 18, 2002 at 04:04:17PM -0700, Galen Seitz wrote:
> 
> How do I tell emacs to use C++ style comments("//") when using C mode?
> 
> TIA,
> galen
> 
> 
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
----                                 _____       _
     Ali Corbin                        /, |_  __(_) ___  _ __        
     Axian, Inc.                      //| |\\/ /| |/ _ \| '_ \   
     Phone: (503)644-6106 #205  _____//_| | / / | | |_| | | | |  
     e-mail: ali at axian.com     ((   //  |_|/_/\\|_|\_/|_|_| |_|  
     http://www.axian.com/      ``-''          ``-''




More information about the PLUG mailing list