# -*- Mode: text -*-

For the xemacs/emacs users, here is a configuration for cc-mode using the corelinux
coding standards.



(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)

