Basic Bazel support for Emacs
For now this mode gives you python syntax highlighting for
.bzl files. Formatting is supported by running
Buildifier needs Go to compile and install. Follow the directions in  or install by running the following command.
go get -u github.com/bazelbuild/buildtools/buildifier
Formatting Bazel files manually
C-c C-f runs
bazel-format on the current buffer.
Formatting Bazel files automatically before saving
Add the following to your Emacs config.
(add-hook 'bazel-mode-hook (lambda () (add-hook 'before-save-hook #'bazel-format nil t)))