mirror of
https://github.com/qpdf/qpdf.git
synced 2024-10-31 19:02:30 +00:00
f20fa61eb4
Configure emacs and clang-format 15 to the coding style I am choosing for qpdf.
39 lines
1.0 KiB
EmacsLisp
39 lines
1.0 KiB
EmacsLisp
((nil . ((indent-tabs-mode . t)
|
|
(qpdf-cc-style
|
|
.
|
|
("qpdf"
|
|
(c-basic-offset . 4)
|
|
(c-comment-only-line-offset . 0)
|
|
(c-offsets-alist
|
|
(defun-block-intro . +)
|
|
(block-open . 0)
|
|
(substatement-open . 0)
|
|
(statement-cont . +)
|
|
(case-label . 0)
|
|
(access-label . -2)
|
|
(statement-case-intro . +)
|
|
(statement-case-open . +)
|
|
(arglist-intro . +)
|
|
(arglist-close . 0)
|
|
(inline-open . 0)
|
|
(inlambda . 0)
|
|
)
|
|
)
|
|
)
|
|
(c-noise-macro-names . ("QPDF_DLL" "QPDF_DLL_CLASS" "QPDF_DLL_LOCAL"))
|
|
)
|
|
)
|
|
(c++-mode . ((eval . (progn
|
|
(add-to-list 'c-style-alist qpdf-cc-style)
|
|
(c-set-style "qpdf")
|
|
)
|
|
))
|
|
)
|
|
(c-mode . ((eval . (progn
|
|
(add-to-list 'c-style-alist qpdf-cc-style)
|
|
(c-set-style "qpdf")
|
|
)
|
|
))
|
|
)
|
|
)
|