summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-11-08 12:18:02 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2020-11-08 14:39:39 +0000
commit63c67b7cc814756832bbc3f1ff88af7d89c3ee8a (patch)
tree89166f8aedf6204dc2c96a1b4d024bed22133e45 /emacs
parent9dcf04373f70aa5db656aa0e9feb24bde996a440 (diff)
emacs: Use Google C++ style with clang-format
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f59d64d..35c8582 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -73,7 +73,11 @@
:config (setq bazel-mode-buildifier-before-save t)
:ensure t)
-(use-package clang-format :ensure t)
+(use-package cc-mode :bind (:map c++-mode-map ("C-c f" . clang-format)))
+
+(use-package clang-format
+ :init (setq clang-format-style "google")
+ :ensure t)
(use-package diminish :ensure t)