From d1d6830c58dbfff8382ac2a0c7a792ea85ea319e Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 17 Jul 2020 21:00:25 -0400 Subject: [PATCH] feat(gs/emacs): Install clang-format+ Change-Id: I3560932953718ab9324bc490488f39605f03ee5e Reviewed-on: https://cl.tvl.fyi/c/depot/+/1264 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/emacs.d/cpp.el | 4 ++++ users/glittershark/emacs.d/packages.el | 1 + 2 files changed, 5 insertions(+) diff --git a/users/glittershark/emacs.d/cpp.el b/users/glittershark/emacs.d/cpp.el index c72323341..0fe2d1726 100644 --- a/users/glittershark/emacs.d/cpp.el +++ b/users/glittershark/emacs.d/cpp.el @@ -22,6 +22,10 @@ (use-package! protobuf-mode) +(use-package! clang-format+ + :config + (add-hook 'c-mode-common-hook #'clang-format+-mode)) + (comment (setq lsp-clients-clangd-executable diff --git a/users/glittershark/emacs.d/packages.el b/users/glittershark/emacs.d/packages.el index 2a353f402..ac6897170 100644 --- a/users/glittershark/emacs.d/packages.el +++ b/users/glittershark/emacs.d/packages.el @@ -158,3 +158,4 @@ ;;; cpp (package! protobuf-mode) +(package! clang-format+)