mirror of
https://github.com/libfuse/libfuse.git
synced 2026-07-07 14:47:41 +08:00
bdddba72c2
We have a non ideal configuration for different editors. The project uses linux style - emacs config should also correspond to that. Taken from https://www.kernel.org/doc/html/v6.13/process/coding-style.html#you-ve-made-a-mess-of-it with the attempt to update for c++. Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
65 lines
2.7 KiB
EmacsLisp
65 lines
2.7 KiB
EmacsLisp
((python-mode . ((indent-tabs-mode . nil)))
|
|
(c++-mode . ((c-file-style . "linux-kernel")
|
|
(c-basic-offset . 8)
|
|
(c-label-minimum-indentation . 0)
|
|
(c-offsets-alist . (
|
|
(arglist-close . c-lineup-arglist-tabs-only)
|
|
(arglist-cont-nonempty .
|
|
(c-lineup-gcc-asm-reg c-lineup-arglist-tabs-only))
|
|
(arglist-intro . +)
|
|
(brace-list-intro . +)
|
|
(c . c-lineup-C-comments)
|
|
(case-label . 0)
|
|
(comment-intro . c-lineup-comment)
|
|
(cpp-define-intro . +)
|
|
(cpp-macro . -1000)
|
|
(cpp-macro-cont . +)
|
|
(defun-block-intro . +)
|
|
(else-clause . 0)
|
|
(func-decl-cont . +)
|
|
(inclass . +)
|
|
(inher-cont . c-lineup-multi-inher)
|
|
(knr-argdecl-intro . 0)
|
|
(label . -1000)
|
|
(statement . 0)
|
|
(statement-block-intro . +)
|
|
(statement-case-intro . +)
|
|
(statement-cont . +)
|
|
(substatement . +)
|
|
))
|
|
(indent-tabs-mode . t)
|
|
(show-trailing-whitespace . t)
|
|
))
|
|
(c-mode . ((c-file-style . "linux-kernel")
|
|
(c-basic-offset . 8)
|
|
(c-label-minimum-indentation . 0)
|
|
(c-offsets-alist . (
|
|
(arglist-close . c-lineup-arglist-tabs-only)
|
|
(arglist-cont-nonempty .
|
|
(c-lineup-gcc-asm-reg c-lineup-arglist-tabs-only))
|
|
(arglist-intro . +)
|
|
(brace-list-intro . +)
|
|
(c . c-lineup-C-comments)
|
|
(case-label . 0)
|
|
(comment-intro . c-lineup-comment)
|
|
(cpp-define-intro . +)
|
|
(cpp-macro . -1000)
|
|
(cpp-macro-cont . +)
|
|
(defun-block-intro . +)
|
|
(else-clause . 0)
|
|
(func-decl-cont . +)
|
|
(inclass . +)
|
|
(inher-cont . c-lineup-multi-inher)
|
|
(knr-argdecl-intro . 0)
|
|
(label . -1000)
|
|
(statement . 0)
|
|
(statement-block-intro . +)
|
|
(statement-case-intro . +)
|
|
(statement-cont . +)
|
|
(substatement . +)
|
|
))
|
|
(indent-tabs-mode . t)
|
|
(show-trailing-whitespace . t)
|
|
))
|
|
)
|