diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-28 17:34:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-28 17:34:57 +0000 |
commit | bca2105c5762e433a910898396cfbeee70a4ba2c (patch) | |
tree | e65aedb87180aa4dd06f40920ff925e0054c9cb2 /llvm/utils/emacs | |
parent | 32d105d8d441d069c710829137bb8f2bbbdc72fd (diff) | |
download | bcm5719-llvm-bca2105c5762e433a910898396cfbeee70a4ba2c.tar.gz bcm5719-llvm-bca2105c5762e433a910898396cfbeee70a4ba2c.zip |
Tweak LLVM emacs style to make default namespace indentation closer to style
guide.
llvm-svn: 77331
Diffstat (limited to 'llvm/utils/emacs')
-rw-r--r-- | llvm/utils/emacs/emacs.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/utils/emacs/emacs.el b/llvm/utils/emacs/emacs.el index a12848b4575..969f538c817 100644 --- a/llvm/utils/emacs/emacs.el +++ b/llvm/utils/emacs/emacs.el @@ -1,6 +1,6 @@ ;; LLVM coding style guidelines in emacs ;; Maintainer: LLVM Team, http://llvm.org/ -;; Modified: 2005-04-24 +;; Modified: 2009-07-28 ;; Max 80 cols per line, indent by two spaces, no tabs. ;; Apparently, this does not affect tabs in Makefiles. @@ -17,7 +17,9 @@ '((fill-column . 80) (c++-indent-level . 2) (c-basic-offset . 2) - (indent-tabs-mode . nil))) + (indent-tabs-mode . nil) + (c-offsets-alist . ((innamespace 0))))) + (add-hook 'c-mode-hook (function (lambda nil @@ -26,6 +28,7 @@ (c-set-style "llvm.org") ) )))) + (add-hook 'c++-mode-hook (function (lambda nil |