mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
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
This commit is contained in:
parent
3583df7676
commit
a02446a9d5
@ -1,6 +1,6 @@
|
|||||||
;; LLVM coding style guidelines in emacs
|
;; LLVM coding style guidelines in emacs
|
||||||
;; Maintainer: LLVM Team, http://llvm.org/
|
;; 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.
|
;; Max 80 cols per line, indent by two spaces, no tabs.
|
||||||
;; Apparently, this does not affect tabs in Makefiles.
|
;; Apparently, this does not affect tabs in Makefiles.
|
||||||
@ -17,7 +17,9 @@
|
|||||||
'((fill-column . 80)
|
'((fill-column . 80)
|
||||||
(c++-indent-level . 2)
|
(c++-indent-level . 2)
|
||||||
(c-basic-offset . 2)
|
(c-basic-offset . 2)
|
||||||
(indent-tabs-mode . nil)))
|
(indent-tabs-mode . nil)
|
||||||
|
(c-offsets-alist . ((innamespace 0)))))
|
||||||
|
|
||||||
(add-hook 'c-mode-hook
|
(add-hook 'c-mode-hook
|
||||||
(function
|
(function
|
||||||
(lambda nil
|
(lambda nil
|
||||||
@ -26,6 +28,7 @@
|
|||||||
(c-set-style "llvm.org")
|
(c-set-style "llvm.org")
|
||||||
)
|
)
|
||||||
))))
|
))))
|
||||||
|
|
||||||
(add-hook 'c++-mode-hook
|
(add-hook 'c++-mode-hook
|
||||||
(function
|
(function
|
||||||
(lambda nil
|
(lambda nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user