When running clang-format-buffer
or clang-format-region
when a region has been been selected, no change is made to the formatting. However, in *Messages*
, I see (clang-format: success)
. Using clang-format
in the terminal works fine, and the emacs package clang-format
is configured to point towards the correct location where clang-format
is installed.
These are the only lines I have in my init.el related to clang-format
(I've also tried all variations of setting / not setting clang-format-style
and clang-format-style-option
):
;; Clang stuff
(require 'clang-format)
(setq clang-format-style "file")
Is there something I'm missing?