mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(language/protobuf): format non-buf protobuf files with clang-format
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
(indent-tabs-mode . nil)) t)
|
||||
|
||||
;; Lint and format with buf if file is in a buf project.
|
||||
(when (flycheck-protobuf-buf-project-root)
|
||||
(if (not (flycheck-protobuf-buf-project-root))
|
||||
(clang-format-on-save-mode t)
|
||||
(setq-local flycheck-checker 'protobuf-buf)
|
||||
(buf-format-on-save-mode t))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user