CoreLinux++
|
Goals
|
Developer's Corner
|
Contacts
|
|
Adds!
Here is an configuration for xemacs/emacs using the cc-mode !
(defun corelinux-c++-mode-hook ()
;; use Ellemtel style for all C++ like languages
(c-set-style "ellemtel")
;; Comments must be at the same indentation level as the block they describe
(c-set-offset 'comment-intro '0)
;; One level more of indentation for left parentesis of function parameters
(c-set-offset 'topmost-intro-cont '+)
;; Right parenthesis at same level of the left one
(c-set-offset 'arglist-close '0)
(setq tab-width 3
;; this will make sure spaces are used instead of tabs
indent-tabs-mode nil)
)
;; Affect only c++ files
(add-hook 'c++-mode-hook 'corelinux-c++-mode-hook)
get it here
Copyright © 1999, 2000 by CoreLinux Consortium
This material may be distributed only subject to the terms and conditions set forth in the
Open Publication License
|
|
|