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 | 4e4643fd2f61e6273152cd2e4e03221609ebb882 (patch) | |
| tree | d3831a94b340f15da4db09cc2b4261a095df73c8 | |
| parent | 7cdd24ce79a4ab41234dc546fccdc7f9525ba59e (diff) | |
| download | external_llvm-4e4643fd2f61e6273152cd2e4e03221609ebb882.zip external_llvm-4e4643fd2f61e6273152cd2e4e03221609ebb882.tar.gz external_llvm-4e4643fd2f61e6273152cd2e4e03221609ebb882.tar.bz2 | |
Tweak LLVM emacs style to make default namespace indentation closer to style
guide.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77331 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | utils/emacs/emacs.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/emacs/emacs.el b/utils/emacs/emacs.el index a12848b..969f538 100644 --- a/utils/emacs/emacs.el +++ b/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 |
