summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-05-08 16:48:57 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-05-08 16:48:57 +0100
commit74c402fdf2e76d82f317628edf17156022d6e7e2 (patch)
treeba9df10da557d78126d8137fa66c5298f1050716 /emacs
parentbab5bc38df1678d619c654e7c6d41900cbefd33d (diff)
emacs: Run buildifier automatically
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index e66f590..d28ea35 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -57,6 +57,7 @@
(split-window-horizontally)
(balance-windows)))
+(add-hook 'bazel-mode-hook (setq bazel-mode-buildifier-before-save t))
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(add-hook 'c++-mode-hook (lambda () (google-set-c-style)))
(add-hook 'go-mode-hook