[go: up one dir, main page]

File: README.emacs

package info (click to toggle)
libcorelinux 0.4.32-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,692 kB
  • ctags: 2,350
  • sloc: cpp: 23,065; sh: 9,195; makefile: 424; perl: 41; ansic: 8
file content (25 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- 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)