Protocol-Buffers mode binds
c-indent-line-or-region to the TAB key. Since one of my projects uses 4 spaces for .proto file indentation, I've tried customizing
indent-tabs-mode to nil, and
c-basic-offset both to 4. However, pressing TAB will re-indent lines using 2 spaces.
How can I make it do what I need?
Edit: the Commentary for protobuf-mode says:
;; You can customize this mode just like any mode derived from CC Mode. If ;; you want to add customizations specific to protobuf-mode, you can use the ;; `protobuf-mode-hook'. For example, the following would make protocol-mode ;; use 2-space indentation: ;; ;; (defconst my-protobuf-style ;; '((c-basic-offset . 2) ;; (indent-tabs-mode . nil)))
I have used
customize-variable to set
tab-width to 4.
find-librarygot me to a