From ed74bffd18ad8597507262107c14c341dbc04b15 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 16 Sep 2019 16:55:37 +0200 Subject: emacs: added clang-format+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.emacs.d/init.org') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 12c6abb..78954ce 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1987,6 +1987,17 @@ comments and the usage of tabs instead of spaces. (lambda () (setq indent-tabs-mode t))) #+END_SRC +The =clang-format+= package supersedes the =clang-format.el= file from the Clasp +authors and it adds all the nuts and bolts to have =clang-format= work for the +whole file automatically: + +#+BEGIN_SRC elisp +(use-package clang-format+ + :ensure t + :config + (add-hook 'c-mode-common-hook #'clang-format+-mode)) +#+END_SRC + CMake for y'all. #+BEGIN_SRC elisp -- cgit v1.2.3