mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(language/protobuf): enforce buf flycheck linter in buf projects
This commit is contained in:
@@ -23,9 +23,10 @@
|
||||
(c-add-style "siren" '((c-basic-offset . 2)
|
||||
(indent-tabs-mode . nil)) t)
|
||||
|
||||
;; Enable formatting on save with `buf format' for buf projects.
|
||||
(if (flycheck-protobuf-buf-project-root)
|
||||
(protobuf-format-on-save-mode +1))
|
||||
;; Lint and format with buf if file is in a buf project.
|
||||
(when (flycheck-protobuf-buf-project-root)
|
||||
(setq-local flycheck-checker 'protobuf-buf)
|
||||
(protobuf-format-on-save-mode +1))
|
||||
|
||||
(subword-mode +1)
|
||||
(siren-folding))
|
||||
|
||||
Reference in New Issue
Block a user